| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134666 | 翁思宸 | 输出回文数 | C++ | Accepted | 46 MS | 272 KB | 388 | 2025-10-31 18:43:02 |
//1457 输出回文数 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int n=0,x=0,s=0,l=0; cin>>n; for(int i=1;i<=n;i++){ x=i; s=0; while(x!=0){ s=s*10+x%10; x/=10; } if(s==i){ cout<<i<<endl; } } return 0; }