Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79893 李雨昊 【基础题】四位完全平方数(例题) C++ Running & Judging 0 MS 0 KB 241 2024-07-11 09:04:52

Tests(0/0):


Code:

#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ int a,b,t; for(a=1;a<=9;a++){ for(b=0;b<=9;b++){ t=a*1000+a*100+b*10+b; if(t == int (sqrt(t))*int(sqrt(t))){ cout<<t; } } } }