提交时间:2024-05-18 15:27:35

运行 ID: 147465

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