| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133983 | 任艺宸 | 水仙花数II | C++ | Accepted | 2 MS | 272 KB | 576 | 2025-10-25 12:16:02 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n,c=0; cin>>m>>n; for(int x=m;x<=n;x++){ int g=x%10; int s=x/10%10; int b=x/100%10; if(x==g*g*g+s*s*s+b*b*b){ if(c==0) cout<<x; else cout<<" "<<x; c++; } } if(c==0)cout<<"no"; cout<<endl; return 0; }