| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 161002 | 周泽洋 | 水仙花数II | C++ | Wrong Answer | 1 MS | 272 KB | 418 | 2026-09-26 18:51:09 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int m,n,a,b,c,i=0; cin>>m>>n; for(int x=m;x<=n;x++){ a=x%10; b=(x/10)%10; c=x/100; if(a*a*a+b*b*b+c*c*c==x){ cout<<x<<endl; i++; } } if(i!=0){ return 0; } cout<<"No"; return 0; }
------Input------
200 300
------Answer-----
no
------Your output-----
No