1 条题解

  • 2
    @ 2026-7-8 10:22:15
    using namespace std;
    
    int main() {
        int n;
        cin >> n;
        int ans = 0;
        
        while (n > 0) {
            ans = ans * 10 + n % 10; 
            n /= 10;          
        }
        
        cout << ans << endl;
        return 0;
    }
    
    
    
    • 1

    信息

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