6 条题解

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

    #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
    标签
    (无)
    递交数
    290
    已通过
    222
    上传者