| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63882 | 李琥博 | 水仙花数II | C++ | Accepted | 2 MS | 272 KB | 295 | 2024-01-20 11:09:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,f=0; cin>>m>>n; for(int i=m;i<=n;i++){ int g,s,b; b=i/10/10%10; s=i/10%10; g=i%10; if(g*g*g+s*s*s+b*b*b==i){ cout<<i<<" "; f=1; } } if(f==0){ cout<<"no"; } return 0; }