| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 147422 | 杰苏尔纳迪尔 | 判断平方数 | C++ | Accepted | 100 | 2 MS | 248 KB | 264 | 2024-05-18 15:09:41 |
#include <bits/stdc++.h> using namespace std; bool judge(int m) { int t = sqrt(m); if(t * t == m){ cout<<1<<endl; } else { cout<<0<<endl; } } int main() { int a; while(cin>>a) { judge(a); } return 0; }