Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115102 刘佳宇 水仙花数II C++ Wrong Answer 1 MS 272 KB 291 2025-03-29 11:36:04

Tests(0/10):


Code:

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


Run Info:

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