| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64613 | 殷震轩 | 水仙花数II | C++ | Wrong Answer | 2 MS | 264 KB | 337 | 2024-01-21 17:12:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,p=0; cin>>m>>n; for(int i=m;i<=n;i++){ int q=(i/10%10)*(i/10%10)*(i/10%10); int c=(i/100)*(i/100)*(i/100); int y=(i%10)*(i%10)*(i%10); if(i==q+c+y){ cout<<i<<" "; p=1; } } if(p=0){ cout<<"No"; } return 0; }
------Input------
200 300
------Answer-----
no
------Your output-----