Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7148 柯宇希 水仙花数II C++ Wrong Answer 0 MS 264 KB 556 2025-04-05 14:09:48

Tests(0/10):


Code:

#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 n,m,g,s,b,a=0; bool f=0; cin>>m>>n; for(int i=m;i<=n;i++){ g=i%10; s=i/10%10; b=i/100%10; if(i==g*g*g+g*g*g+g*g*g){ cout<<i<<" "; f=1; } } if(f==0){ cout<<"no"<<endl; } return 0; }


Run Info:

------Input------
100 200
------Answer-----
153
------Your output-----
no