| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155666 | 何旻慧 | 输出回文数 | C++ | Accepted | 35 MS | 276 KB | 512 | 2026-06-10 19:55:17 |
#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 a; cin>>a; for(int i=1;i<=a;i++){ int n,sume=0; n=i; while(n!=0){ sume=sume*10+n%10; n=n/10; } if(i==sume){ cout<<i<<endl; } } return 0; }