Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64568 段文昊 水仙花数II C++ Wrong Answer 1 MS 268 KB 328 2024-01-21 16:49:39

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=9;i++){ for(int j=0;j<=9;j++){ for(int k=0;k<=9;k++){ if(i*100+j*10+k>=n && i*100+j*10+k<=m && i*100+j*10+k==i*i*i+j*j*j+k*k*k){ cout<<i*100+j*10+k<<' '; } } } } cout<<"no"; return 0; }


Run Info:

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