Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115116 魏宏搏 水仙花数II C++ Wrong Answer 1 MS 272 KB 316 2025-03-29 11:51:33

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int m,n,a,b,c,y; cin>>m>>n; for(int x=m;x<=n;x++){ y=x; a=y%10; b=y/10%10; c=y/100; if(a*a*a+b*b*b+c*c*c==x){ cout<<y; break; } } cout<<"no"; return 0; }


Run Info:

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