Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117904 吴诗涵 方程求解 C++ Wrong Answer 1 MS 268 KB 503 2025-04-20 18:10:56

Tests(1/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n,x=0,y=0,f=0; cin>>m>>n; for(int i=1;i<=m-1;i++){ for(int j=1;j<=m-1;j++){ if(i+j==m&&i*j==n){ cout<<"Yes"; f=1; break; } } } if(f==0){ cout<<"No"; } return 0; }


Run Info:

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