提交时间:2024-05-18 15:29:42

运行 ID: 147475

#include<bits/stdc++.h> using namespace std; void s(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) s(x); return 0; }