Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117902 | 刘珩宇 | 方程求解 | C++ | Accepted | 28 MS | 272 KB | 448 | 2025-04-20 18:07:24 |
#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,i,j; cin>>m>>n; for(i=1;i<=m-1;i++){ for(j=1;j<=m-1;j++){ if(i+j==m&&i*j==n){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }