Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133981 陈骏睿 水仙花数II C++ Wrong Answer 1 MS 272 KB 488 2025-10-25 12:12:44

Tests(5/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; cin>>m>>n; for(int x=m;x<=n;x++){ int g=x%10; int s=x/10%10; int b=x/100; if(x==g*g*g+s*s*s+b*b*b){ cout<<x<<" "; } } return 0; cout<<"No"<<endl; return 0; }


Run Info:

------Input------
200 300
------Answer-----
no
------Your output-----