Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
43628 楼俊毅 【循环】求四位数(Square ) C++ Accepted 3 MS 268 KB 175 2022-12-22 16:45:59

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int a; for(a=1000;a<=9999;a++){ if((a/100+a%100)*(a/100+a%100)==a){ cout<<a<<endl; } } return 0; }