Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8081 詹梓涵 方程求解 C++ Accepted 0 MS 268 KB 463 2025-06-14 09:08:42

Tests(10/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; cin>>m>>n; for(int i=0;i<=m/2;i++){ x=i; if(x*(m-x)==n){ cout<<"Yes"<<endl; return 0; } } cout<<"No"<<endl; return 0; }