| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159105 | 王垚植 | 水仙花数 | C++ | Wrong Answer | 1 MS | 276 KB | 354 | 2026-08-25 20:17:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int g,s,b,m,n; cin>>m>>n; bool f=0; for (int i=m;i<=n;i++){ g=i%10; s=i%100/10; b=i/100; if (pow(g,3)+pow(s,3)+pow(b,3)){ cout<<i<<" "; f=1; } } if (f==0){ cout<<"no"<<" "; } return 0; }
------Input------
100 130
------Answer-----
no
------Your output-----
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130