Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96499 王思颜 方程求解 C++ Wrong Answer 1 MS 276 KB 295 2024-11-09 11:08:21

Tests(0/10):


Code:

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


Run Info:

------Input------
111 11
------Answer-----
No
------Your output-----
NONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONONO