Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
147317 黄本瀚 判断平方数 C++ Wrong Answer 25 0 MS 240 KB 279 2024-05-18 14:38:00

Tests(1/4):


#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; }


Judgement Protocol: