Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63869 彭慕允 方程求解 C++ Wrong Answer 30 MS 280 KB 260 2024-01-20 10:46:16

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n ,m; int liu=0; cin>>n>>m; 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; }


Run Info:

------Input------
188 8800
------Answer-----
Yes
------Your output-----
No