Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129593 陈奕涵 水仙花数II C++ Wrong Answer 1 MS 272 KB 524 2025-08-29 14:48:45

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 a,b,c=0; cin>>a>>b; for(int i=1;i<=b;i++){ int t=i%10; t=t*t*t; int tt=i/10%10; t+=tt*tt*tt; tt=i/100; t=tt*tt*tt; if(t==i){ if(c==0) cout<<i; else cout<<" "<<i; c++; } } if(c==0) cout<<"no"; cout<<endl; return 0; }


Run Info:

------Input------
400 600
------Answer-----
407
------Your output-----
no