提交时间:2024-05-18 14:22:19

运行 ID: 147280

#include <bits/stdc++.h> using namespace std; bool judge(int m) { int t = sqrt(m); if(t * t == m){ cout<<1<<endl; } else { cout<<0<<endl; } } int main() { int a; while(cin>>a) { judge(a); } return 0; }