mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 03:38:47 +00:00
P7892 『JROI-3』R.I.P.
R59042987
This commit is contained in:
parent
9317dd1aeb
commit
2629377a1e
25
Luogu/problem/P7892/P7892.cpp
Normal file
25
Luogu/problem/P7892/P7892.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user