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