| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79892 | 李雨昊 | 【基础题】四位完全平方数(例题) | C++ | Running & Judging | 0 MS | 0 KB | 236 | 2024-07-11 09:01:43 |
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ int a,b,t; for(a=1;a<=9;a++){ for(a=1;a<=9;a++){ t=a*1000+a*100+b*10+b; if(t == int (sqrt(t)*sqrt(t))){ cout<<t; } } } }