Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63861 李琥博 方程求解 C++ Wrong Answer 2 MS 276 KB 267 2024-01-20 10:43:33

Tests(0/10):


Code:

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


Run Info:

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