1 条题解

  • 0
    @ 2025-10-14 9:14:03
    #include <bits/stdc++.h>
    using namespace std;
    int n;
    int main() {
        cin >> n;
        int cnt = 0;
        if (n == 0) {
            cout << 0;
            return 0;
        }
        while (n != 0) {
            cnt = cnt * 10 + n % 10;
            n /= 10;
        }
        cout << cnt;
        return 0;
    }
    
    • 1

    信息

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