提交时间:2023-08-03 19:27:28

运行 ID: 24046

#include<iostream> using namespace std; int main() { int n,sum; cin>>n; while(n) { sum=sum*10+n%10; n=n/10; } for(int i=0;i<=256;i++) if(i*i==sum(i*i)) cout<<sum; return 0; }