1 条题解

  • 0
    @ 2025-11-30 16:24:21

    C++ :

    #include <iostream>
    using namespace std;
    int main() {
        int num, reversedNum = 0;
        cin >> num;
        do {
            int digit = num % 10;
            reversedNum = reversedNum * 10 + digit;
            num /= 10;
        } while (num != 0);
        cout << reversedNum;
        return 0;
    }
    
    • 1

    信息

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