| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165161 | 罗钰帆 | 输出回文数 | C++ | Accepted | 40 MS | 272 KB | 485 | 2026-11-12 19:40:19 |
#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,a,t; cin>>n; for(int i=1;i<=n;i++){ a=i; t=0; while(a!=0){ t=t*10+a%10; a/=10; } if(t==i) cout<<i<<endl; } return 0; }