Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102767 吴彦晓 输出回文数 C++ Time Limit Exceeded 1000 MS 268 KB 251 2024-12-22 16:04:15

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int t,i = 0,j = 0,n,nu = 0; cin>>n; for(i = 1;i<= n;i++){ nu = 0; j = i; while(j){ t = j%10; j/10; nu = nu*10+t; }if(nu == i){ cout<<nu<<endl; } } }