Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71364 sh25_ganzy 数字反转 C++ 解答错误 0 MS 248 KB 423 2025-10-25 13:35:49

Tests(1/3):


#include<bits/stdc++.h> using namespace std; int main(){ long long n; cin>>n; int num; bool isZero=true; if(n<0){ cout<<"-"; } 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; }


测评信息: