Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96510 | 揭伟琦 | 方程求解 | C++ | Wrong Answer | 0 MS | 260 KB | 256 | 2024-11-09 11:10:48 |
# include<iostream> using namespace std; int a[100][100]; int main(){ int m,n; 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"; return 0; } } } cout <<"NO"; return 0; }
------Input------
111 11
------Answer-----
No
------Your output-----
NO