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

Tests(2/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("%d",x); return 0; } } cout<<"no"; return 0; }


Run Info:

------Input------
264 962
------Answer-----
370 371 407
------Your output-----
370