Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96509 孙睿阳 方程求解 C++ Accepted 40 MS 272 KB 305 2024-11-09 11:10:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int x,y,sum=0; int m,n; m=x+y; n=x*y; cin>>m>>n; for(x=1;x<=m-1;x++){ for(y=1;y<=m-1;y++){ if(x+y==m&&x*y==n){ sum++; } } } if(sum!=0){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }