#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int n,m,t;
cin>>t;
while(t--)
{
cin>>n>>m;
if(n%(m+1))
cout<<"first"<<endl;
else
cout<<"second"<<endl;
}
return 0;
}
hdu 1846 巴什博弈变形
最新推荐文章于 2021-06-21 16:58:45 发布