| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151490 | 郑景文 | 方程求解 | C++ | Accepted | 45 MS | 272 KB | 286 | 2026-04-12 15:27:27 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,m,n; cin>>m>>n; bool a=0; for(int x=1;x<=m;x++){ for(int y=1;y<=m;y++){ if(x+y==m&&x*y==n){ a=1; cout<<"Yes"; return 0; } } } if(a==0){ cout<<"No"; } return 0; }