| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86157 | 李雨昊 | 【基础题】四位完全平方数(例题) | C++ | Running & Judging | 0 MS | 0 KB | 333 | 2024-07-23 12:05:23 |
#include<bits/stdc++.h> using namespace std; int main() { int d, num; for(int i = 1; i <= 9; ++i) for(int j = 0; j <= 9; ++j) { num = i*1000+i*100+j*10+j; d = sqrt(num);//sqrt() if(num == d*d) cout << num << endl; } return 0; }