Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115099 范曾 方程求解 C++ Accepted 1 MS 272 KB 244 2025-03-29 11:26:03

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int m,n; bool f=0; cin>>m>>n; for(int x=0;x<=m;x++){ if(x*(m-x)==n){ f=1; } } if(f==1){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }