Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63868 杨莹斌 方程求解 C++ Accepted 28 MS 272 KB 314 2024-01-20 10:45:48

Tests(10/10):


Code:

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