Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123165 陈骏睿 输出回文数 C++ Output Limit Exceeded 216 MS 268 KB 499 2025-06-28 12:19:55

Tests(0/10):


Code:

#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 temp,n,i=0,j=0,num=0; cin>>n; for(i=1;j<=n;j++){ num=0; j=i; while(j){ temp=i%10; j/=10; num=num*10+temp; } if(num==i) cout<<num<<endl; } return 0; }