OJ-Problems-Source/HDOJ/1846_autoAC.cpp

17 lines
266 B
C++
Raw Normal View History

#include<stdio.h>
int main()
{
int c;
scanf("%d",&c);
while(c--)
{
int n,m;
scanf("%d%d",&n,&m);
if(n%(m+1)==0)
printf("second\n");
else
printf("first\n");
}
return 0;
}