| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137216 | 黄俊然 | 输出回文数 | C++ | Accepted | 52 MS | 272 KB | 496 | 2025-11-16 16:43:48 |
#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,m,h; cin>>n; for(int i=1;i<=n;i++){ m=i; h=0; while(m>0){ h=h*10+m%10; m/=10; } if(h==i){ cout<<h<<endl; } } return 0; }