TIJIE

凌愉晴  •  1个月前


#include<bits/stdc++.h>
using namespace std;
void f(int x){
	int a;
	a=int(sqrt(x))*int(sqrt(x));
	if(a==x) cout<<1<<endl;
	else cout<<0<<endl;
}
int main(){
	int n;
	while(cin>>n){
		f(n);
	}
}

评论: