Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119486 | 周子潇 | 方程求解 | C++ | Wrong Answer | 1 MS | 276 KB | 667 | 2025-05-17 16:48:48 |
#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 n,m; cin>>n>>m; bool flag=1; for(int i=1;i<=n;i++) { for(int j=1;j<=m;j++) { if(i+j==n&&i*j==m) { flag=1; } else { flag=0; } } } if(flag==1) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
------Input------
188 8800
------Answer-----
Yes
------Your output-----
No