| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133861 | 李亭绪 | 100~999的水仙花数 | C++ | Wrong Answer | 1 MS | 264 KB | 227 | 2025-10-22 19:43:39 |
#include<iostream> #include<cstring> using namespace std; int main(){ long long i=100,g,s,b,Sum=0; while(i<1000) { g=i%10; s=i%100/10; b=i/100; if(g*g*g+s*s*s+b*b*b*b==i) { cout<<i<<" "; } i++; } }
------Input------
0
------Answer-----
153 370 371 407
------Your output-----
153 445