| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159106 | 王垚植 | 水仙花数 | C++ | Accepted | 1 MS | 280 KB | 352 | 2026-08-25 20:18:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int g,s,b,m,n; cin>>m>>n; bool f=0; for (int i=m;i<=n;i++){ g=i%10; s=i%100/10; b=i/100; if (pow(g,3)+pow(s,3)+pow(b,3)==i){ cout<<i<<" "; f=1; } } if (f==0){ cout<<"no"; } return 0; }