Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105899 | 罗迎甲 | 输出回文数 | C++ | Accepted | 34 MS | 272 KB | 536 | 2025-01-14 17:00:30 |
#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 a1,s1=0,s2=0,s3,d1=0; cin>>s3; for(int i=1;i<=s3;i++){ d1=0; s2=i; while(s2){ a1=s2%10; s2/=10; d1=d1*10+a1; } if(d1==i) cout<<d1<<endl; } return 0; }