#include <iostream>
#include<stdio.h>
#include<algorithm>
#include<string.h>
#include<math.h>
#define ENTER printf("\n");
#define ll long long
using namespace std;
int t;
int n, m;
int main()
{
scanf("%d", &t);
while (t--)
{
scanf("%d%d", &n, &m);
if (n % (m + 1))
{
printf("first\n");
}
else
printf("second\n");
}
return 0;
}
HDU 1846 巴什博弈水的嘛就不谈了
最新推荐文章于 2021-08-29 19:27:16 发布