提交时间:2024-05-18 14:39:10

运行 ID: 147326

#include<bits/stdc++.h> using namespace std; float a(int x){ int s=sqrt(x); return s*s==x; } int main(){ int x,d; cin>>x>>d; if(a(x)){ cout<<"1"<<endl; } else{ cout<<"0"<<endl; } if(a(d)){ cout<<"1"<<endl; } else{ cout<<"0"<<endl; } return 0; }