| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79167 | 刘慕莀 | 100~999的水仙花数 | C++ | Wrong Answer | 1 MS | 260 KB | 207 | 2024-06-30 14:35:18 |
#include<bits/stdc++.h> using namespace std; int main(){ for(int i=100;i<=999;i++){ int a=i%10; int b=i/10%10; int c=i/100%10; if(a*a*a+b*b*b+c*c*c==i){ cout<<i; } } return 0; }
------Input------
0
------Answer-----
153 370 371 407
------Your output-----
153370371407