mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
492bdd03ea
1800-1899
17 lines
266 B
C++
17 lines
266 B
C++
#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;
|
|
}
|