Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138721 王丞杰 水仙花数II C++ Wrong Answer 0 MS 268 KB 276 2025-11-29 16:12:59

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int m,n; scanf("%d%d",&m,&n); for(int x=m;x<=n;x++){ if((x%10)*(x%10)*(x%10)+(x/10%10)*(x/10%10)*(x/10%10)+(x/100)*(x/100)*(x/100)==x){ printf("yes"); return 0; } } cout<<"no"; return 0; }


Run Info:

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