| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63872 | 彭慕允 | 方程求解 | C++ | Accepted | 29 MS | 272 KB | 286 | 2024-01-20 10:47:32 |
#include<bits/stdc++.h> using namespace std; int main() { int n ,m; int liu=0; cin>>m>>n; for(int x=0; x<=m; x++) { for(int y=0; y<=m; y++) { if(x+y==m&&x*y==n) { liu=1; } } } if(liu==1) { cout<<"Yes"; } else { cout<<"No"; } return 0; }