Run ID:136244

提交时间:2025-11-09 22:34:12

#include <iostream> using namespace std; int main() { int m, n; while (cin >> m >> n) { bool found = false; for (int y = 1; y < m; ++y) { int x = m - y; if (x * y == n) { cout << "Yes" << endl; found = true; break; } } if (!found) { cout << "No" << endl; } } return 0; }