1 条题解

  • 0
    @ 2026-5-17 14:45:06
    #include <iostream>
    using namespace std;
    int main() {
        int n, r; cin >> n;
        r = n % 5;
        if (r < 3) cout << n - r;
        else cout << n + (5 - r) << endl;
    }
    • 1

    信息

    ID
    9128
    时间
    2000ms
    内存
    1024MiB
    难度
    6
    标签
    递交数
    15
    已通过
    11
    上传者