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

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==n&&x*y==m){ a=1; cout<<"Yes"; } } } if(a==0){ cout<<"No"; } return 0; }


Run Info:

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