提交时间:2024-05-18 15:29:35
运行 ID: 147474
#include<bits/stdc++.h> using namespace std; void square(int n){ int x; x=int(sqrt(x))*int(sqrt(x)); if(x==n) cout<<1<<endl; else cout<<0<<endl; } int main(){ int x; while(cin>>x){ square(x); } return 0; }