mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 17:56:28 +00:00
26 lines
472 B
C++
26 lines
472 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int t, n, m;
|
|
bool flag;
|
|
|
|
int main() {
|
|
cin >> t;
|
|
while (t--) {
|
|
flag = true;
|
|
cin >> n >> m;
|
|
for (int i = 1; i * i <= n; i++) {
|
|
if (n % i == 0 && (i + 1 + n / i + 1) * 2 <= m) {
|
|
cout << "Good" << endl;
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (flag) {
|
|
cout << "Miss" << endl;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|