| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130831 | Kevin | 【循环】求四位数(Square ) | C++ | Accepted | 1 MS | 260 KB | 270 | 2025-09-19 18:15:54 |
#include<bits/stdc++.h> using namespace std; bool abc(int n){ int z=n/100; int x=n%100; if((z+x)*(z+x)==n){ return true; } else{ return false; } } int main(){ for(int i=1000;i<=9999;i++){ if(abc(i)){ cout<<i<<endl; } } return 0; }