| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71366 | sh25_ganzy | 数字反转 | C++ | Wrong Answer | 0 MS | 252 KB | 439 | 2025-10-25 13:38:09 |
#include<bits/stdc++.h> using namespace std; int main(){ long long n; cin>>n; int num; bool isZero=true; if(n<0){ cout<<"-"; n*=-1; } if(n==0){ cout<<0; }else{ while(n!=0){ num=n%10; n/=10; } if(num!=0){ isZero=false; } if(isZero==false){ cout<<num; } } return 0; }