Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
147431 古浩圳bylz 判断平方数 C++ Compile Error 0 0 MS 0 KB 229 2024-05-18 15:14:29

Tests(0/0):


#include<iostream> using namespace std; void mathsqrt(int n) int main(){ int x; while(cin>>x){ mathsqrt(x); } return 0; } void mathsqrt(int n){ for(int i=1;n>0;i+=2){ n-=i; cout<<(n==0?1:0)<<endl; }


Judgement Protocol: