Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32780 | lnx | 对称平方数1 | C++ | Accepted | 1 MS | 244 KB | 251 | 2023-12-02 19:44:29 |
#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; }