hdu1846

博弈,水题

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

 

posted on 2013-06-10 16:47  Ac_国士无双  阅读(91)  评论(0编辑  收藏  举报