| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76168 | 牛延希 | 输出回文数 | C++ | Accepted | 35 MS | 268 KB | 250 | 2024-06-01 17:50:51 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ int t=i; int s=0; while(t){ s=s*10+t%10; t/=10; }if(s==i) cout<<i<<endl; } return 0; }