| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150896 | 张浩然 | 水仙花数II | C++ | Accepted | 1 MS | 276 KB | 324 | 2026-04-02 11:01:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; bool x=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(((i/100)*(i/100)*(i/100))+(((i%100)/10)*((i%100)/10)*((i%100)/10))+(((i%100)%10)*((i%100)%10)*((i%100)%10))==i){ cout<<i<<" "; x=1; } } if(x==0) { cout<<"no"; } return 0; }