'commit'
This commit is contained in:
15
TangDou/AcWing_TiGao/T5/GameTheory/HDU1846.cpp
Normal file
15
TangDou/AcWing_TiGao/T5/GameTheory/HDU1846.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int T;
|
||||
scanf("%d", &T);
|
||||
while (T--) {
|
||||
int n, m;
|
||||
scanf("%d %d", &n, &m);
|
||||
if (n % (m + 1) == 0)
|
||||
cout << "second" << endl;
|
||||
else
|
||||
cout << "first" << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user