Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64553 祝家懿 方程求解 C++ Accepted 18 MS 276 KB 250 2024-01-21 16:44:44

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[101][101]; int main() { int n,m; cin>>n>>m; for(int i=0;i<n;i++){ for(int k=0;k<m;k++){ if(i+k==n&&i*k==m){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }