| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85168 | 卢语涵 | 100~999的水仙花数 | C++ | Accepted | 0 MS | 268 KB | 227 | 2024-07-16 16:48:45 |
#include<iostream> using namespace std; int main(){ int g,s,b; for(int n=100;n<1000;n++){ g=n%10; s=n/10%10; b=n/100; if(g*g*g+s*s*s+b*b*b==n){ cout<<n<<" "; } } return 0; }