1 条题解

  • 0
    @ 2026-1-24 11:10:49
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n,x;
        cin>>n;
        while(n--){
            cin>>x;
            int t=x%10;
            if(t<5)cout<<x-t<<endl;
            else cout<<x+(10-t)<<endl;
        }
        return 0;
    }
    

    信息

    ID
    5212
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    71
    已通过
    33
    上传者