| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66142 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 水仙花数II | C++ | Wrong Answer | 0 MS | 272 KB | 378 | 2024-03-02 16:07:23 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; for(int r=m;r<=n;r++){ for(int i=r/100;i<=9;i++){ for(int j=r%100/10;j<=9;j++){ for(int x=r%10;x<=9;x++){ if(i*i*i+j*j*j+x*x*x==r){ cout<<"yes"; return 0; } } } } } cout<<"no"; return 0; }
------Input------
400 600
------Answer-----
407
------Your output-----
yes