提交时间:2024-05-18 14:38:42
运行 ID: 147323
#include<iostream> #include<cmath> using namespace std; int main(){ int t; while(cin >> t){ int tmp = sqrt(t); if(tmp * tmp == t) cout << 1 << endl; else cout << 0 << endl; } return 0; }