Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161569 王垚植 输出回文数 C++ Accepted 40 MS 280 KB 320 2026-10-06 11:05:19

Tests(10/10):


Code:

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