| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64589 | 周梓易 | 水仙花数II | C++ | Accepted | 2 MS | 272 KB | 318 | 2024-01-21 17:04:19 |
# include<iostream> # include<cstdio> using namespace std; int main(){ int n,m; cin>>n>>m; int flag=0; for(int i=n;i<=m;i++){ int g = i%10; int s = i/10%10; int b = i/100%10; if(g*g*g+s*s*s+b*b*b==i){ cout<<i<<" "; flag=1; } } if(flag==0){ cout<<"no"; } return 0; }