Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
41077 老方 对称平方数 C++ No Test Data 0 MS 0 KB 286 2024-02-19 10:03:54

Tests(0/0):


#include<bits/stdc++.h> using namespace std; bool isdcpf(int n){ string pf=to_string(n*n); for(int i=0;i<pf.length();i++){ if(pf[pf.length()-1-i]!=pf[i])return false; } return true; } int main(){ for(int i=0;i<256;i++){ if(isdcpf(i))cout<<i<<endl; } return 0; }