| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 87228 | 黄睿杰 | 水仙花数 | C++ | Wrong Answer | 0 MS | 264 KB | 211 | 2024-08-07 19:24:01 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,m,n; cin>>m>>n; for(int i=m;i<=n;i++){ a=i/100; b=i/10%10; c=i%10; if(a*a*a+b*b*b+c*c*c==i) cout<<i<<" "; } return 0; }
------Input------
100 130
------Answer-----
no
------Your output-----