Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20769 | LeoWang | 对称平方数1 | C++ | Accepted | 1 MS | 240 KB | 226 | 2023-06-20 08:12:46 |
#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; }