Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160998 周泽洋 水仙花数II C++ Wrong Answer 1 MS 268 KB 372 2026-09-26 18:36:17

Tests(2/10):


Code:

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


Run Info:

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