Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117736 | 晏莞煜 | 100~999的水仙花数 | C++ | Accepted | 0 MS | 260 KB | 210 | 2025-04-20 10:09:37 |
#include<bits/stdc++.h> using namespace std; int main(){ int g,s,b; for(int q=100;q<=999;q++){ g=q%10; s=q/10%10; b=q/100; if(g*g*g+s*s*s+b*b*b==q){ cout<<q<<" "; } } return 0; }