Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162008 杨金卓 输出回文数 C++ Accepted 36 MS 268 KB 546 2026-10-11 15:07:31

Tests(10/10):


Code:

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