| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 35722 | chenyanda | 数字反转 | C++ | Accepted | 1 MS | 248 KB | 206 | 2024-01-05 16:48:12 |
#include<iostream> using namespace std; int main() { int n,sum=0,a; cin>>n; if(n<0){ cout<<"-"; n=-n; } while(n!=0){ a=n%10; sum=sum*10+a; n/=10; } cout<<sum; return 0; }