hdu1846 Brave Game

#include <stdio.h>

int main()
{
	int n,m,test;
	scanf("%d",&test);
	while(test--)
	{
		scanf("%d %d",&n,&m);
		if(n%(m+1)==0)
			printf("second\n");
		else
			printf("first\n");
	}
	return 0;
}

你可能感兴趣的:(hdu1846 Brave Game)