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