Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102766 | 何明阳 | 输出回文数 | C++ | Accepted | 32 MS | 272 KB | 282 | 2024-12-22 16:04:06 |
# 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; } } }