| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163015 | 王垚植 | 求满足条件的3位数 | C++ | Accepted | 5 MS | 272 KB | 358 | 2026-10-24 11:09:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,num=0; cin>>n; for (int i=10;i<40;i++) { int temp=i*i; int a=temp/100,b=temp/10%10,c=temp%10; if(a==b||b==c||c==a){ num++; } if(num==n){ cout<<temp; return 0; } } return 0; }