| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64574 | 段文昊 | 水仙花数II | C++ | Wrong Answer | 2 MS | 268 KB | 377 | 2024-01-21 16:53:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,b=0; 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<<' '; }else{ b=1; } } } } if(b=1){ cout<<"no"; } return 0; }
------Input------
400 600
------Answer-----
407
------Your output-----
407 no