Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
21 | ZRH | 方程求解 | C++ | Accepted | 49 MS | 256 KB | 491 | 2022-07-18 01:29:56 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int main(){ int x,y,m,n; cin>>m>>n; for(x=0;x<=m;x++) { for(y=0;y<=m;y++) { if(x+y==m) { if(x*y==n) { cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }