Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125733 陈华仁星 方程求解 C++ Accepted 39 MS 264 KB 326 2025-07-15 14:40:59

Tests(10/10):


Code:

#include <iostream> #include <algorithm> using namespace std; int a[20][20]; int main() { int n,m; scanf("%d%d",&m,&n); for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++) { if(i+j==m&&i*j==n) { printf("Yes"); return 0; } } } printf("No"); return 0; }