Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
48465 | fuhaoze | 对称平方数1 | C++ | Accepted | 1 MS | 236 KB | 253 | 2024-06-08 13:53:40 |
#include<bits/stdc++.h> using namespace std; int main() { int i; for(i=0;i<=256;i++) { int n=i*i; int m=0; while(n>0) { m=m*10+n%10; n=n/10; } if(m==i*i) { cout<<i<<endl; } } return 0; }