Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151487 郑景文 方程求解 C++ Wrong Answer 44 MS 268 KB 271 2026-04-12 15:25:51

Tests(1/10):


Code:

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


Run Info:

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