Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115100 | 王煜鑫 | 方程求解 | C++ | Accepted | 1 MS | 272 KB | 259 | 2025-03-29 11:26:15 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; bool flag=0; cin>>m>>n; for(int x=0;x<=m;x++){ if(x*(m-x)==n){ flag=1; break; } } if(flag){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }