Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125752 | 田子熙 | 方程求解 | C++ | Presentation Error | 1 MS | 268 KB | 229 | 2025-07-15 14:46:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a=0,b=0; cin>>m>>n; for(int i=1;i<=m;i++){ a++; b++; if(a+b==m && a*b==n){ cout<<"Yes"; return 0; } } cout<<" No"; return 0; }