Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120957 | 毛靖平 | 输出回文数 | C++ | Accepted | 39 MS | 276 KB | 484 | 2025-06-02 13:45:04 |
#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 k=i; int m=0; while(k>0){ m=m*10+k%10; k=k/10; } if(m==i){ cout<<i<<endl; } } }