Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
36146 | 王皓暄 | 对称平方数1 | C++ | Accepted | 0 MS | 236 KB | 251 | 2024-01-08 19:52:57 |
#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; }