Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102764 何明阳 大力水手吃蔬菜 C++ Wrong Answer 1 MS 264 KB 282 2024-12-22 16:03:39

Tests(0/10):


Code:

# include<bits/stdc++.h> using namespace std; int main() { int temp,i = 0,j = 0,n,num = 0; cin>>n; for(i = 1;i <= n;i++){ num = 0; j = i; while(j){ temp = j % 10; j /= 10; num = num * 10 + temp; } if(num == i){ cout<< num<<endl; } } }


Run Info:

------Input------
27 1 1 1 86 1 35 61 71 19 29 1 61 77 29 1 73 83 41 47 81 27 20 1 9 33 76 44 41 65 91 57 43 41 81 65 65 46 10 76 1 45 36 9 11 57 9 25 58 15 13 43 35 65 9
------Answer-----
1006
------Your output-----
1 2 3 4 5 6 7 8 9 11 22