Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
147326 黄本瀚 判断平方数 C++ 解答错误 25 0 MS 244 KB 287 2024-05-18 14:39:10

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


测评信息: