| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138728 | 刘益梵 | 水仙花数II | C++ | Accepted | 0 MS | 280 KB | 284 | 2025-11-29 16:18:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a,b,c,cnt=0; scanf("%d%d",&m,&n); for(int i=m;i<=n;i++){ a=i/100; b=i/10%10; c=i%10; if(pow(c,3)+pow(b,3)+pow(a,3)==i){ cout<<i<<" "; cnt++; } } if(cnt==0) cout<<"no"; return 0; }