| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133982 | 任艺宸 | 水仙花数II | C++ | Wrong Answer | 1 MS | 268 KB | 516 | 2025-10-25 12:12:50 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n; cin>>m>>n; for(int x=m;x<=n;x++){ int g=x%10; int s=x/10%10; int b=x/100%10; if(x==g*g*g+s*s*s+b*b*b){ cout<<x<<" "; return 0; } } cout<<"no"; return 0; }
------Input------
264 962
------Answer-----
370 371 407
------Your output-----
370