Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125742 | 王金檐 | 方程求解 | C++ | Accepted | 122 MS | 276 KB | 238 | 2025-07-15 14:41:41 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>m>>n; int x,y; for( x=1;x<=m+n;x++){ for( y=1;y<=m+n;y++){ if(x+y==m&&x*y==n){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }