提交时间:2024-05-18 14:30:38

运行 ID: 147288

#include<iostream> #include<cmath> using namespace std; int main(){ int x; while(cin>>x){ if(sqrt(x) == int(sqrt(x))){ cout<<"1\n"; }else{ cout<<"0\n"; } } return 0; }