| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151735 | 王培臻 | 哪几扇门是打开的 | C++ | Wrong Answer | 0 MS | 264 KB | 253 | 2026-04-18 14:15:12 |
#include<bits/stdc++.h> using namespace std; int main() { long long n; cin>>n; for(int i=1;i<=n;i++){ int f=0,num1=i; while(num1!=0){ f=f*10+num1%10; num1=num1/10; } if(i==f){ cout<<i<<endl; } } return 0; }
------Input------
0
------Answer-----
1 4 9 16 25 36 49 64 81 100
------Your output-----