提交时间:2024-02-22 11:31:00
运行 ID: 41619
#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; while(n){ sum=sum*10+n%10; n/=10; } cout<<sum<<endl; }