| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 115111 | 魏宏搏 | 水仙花数II | C++ | Wrong Answer | 1 MS | 272 KB | 328 | 2025-03-29 11:44:05 |
#include<iostream> using namespace std; int main(){ int x,n,m; bool flag=0; cin>>m>>n; for(int x=0;x<=m;x++){ if(x*(m-x)==n){ flag=1; break; } } if(flag){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }
------Input------
400 600
------Answer-----
407
------Your output-----
No