Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6859 | 邓小龙 | 数字反转 | C++ | Wrong Answer | 0 MS | 260 KB | 298 | 2025-03-22 16:15:50 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int ans=0,n; cin>>n; if(n<0){ n=-n; cout<<"-"; } while(n!=0){ int ge=n%10; ans=ans*10+ge; n=n/10; } cout<<ans<<endl; return 0; }
------Input------
10 12 34 99 1 22 3 123 123 29 1 6 2 18 27 28 83 12 23 7 2
------Answer-----
46 NO NO 246 NO 8 NO NO 35 9
------Your output-----
1