Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6454 谢锦卓 数字反转 C++ Wrong Answer 0 MS 260 KB 423 2025-03-01 10:32:14

Tests(0/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,rev_n=0; int g; cin>>n; while(n!=0){ g=n%10; rev_n=rev_n*10+g; n=n/10; } cout<<rev_n<<endl; return 0; }


Run Info:

------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