6 条题解

  • 0
    @ 2025-3-29 21:17:51

    #include <bits/stdc++.h>

    using namespace std;

    int main(){
    
    int n;
    
    cin >> n;
    
    if (n % 10 >= 5)
    
    {
    
    	cout << n + 10 - n % 10;
    
    }   
    
    else
    
    {
    
    	cout << n - n % 10;
    
    }		
    
    
    return 0;
    

    }

    信息

    ID
    2164
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    (无)
    递交数
    288
    已通过
    220
    上传者