Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6982 | 邓小龙 | 方程求解 | C++ | Wrong Answer | 34 MS | 260 KB | 507 | 2025-03-29 14:49:04 |
#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,x,y; cin>>n>>m; for(int x=1;x<=m;x++){ for(int y=1;y<=m;y++){ if( x+y==m && x*y==n ){ cout<<"Yes"; return 0; } } } cout<<"NO"; return 0; }
------Input------
188 8800
------Answer-----
Yes
------Your output-----
NO