andre_joy

导航

hdu 1846

地址:http://acm.hdu.edu.cn/showproblem.php?pid=1846

题意:中文……

mark:简单博弈。

代码:

#include <stdio.h>

int main()
{
    int c,m,n;
    scanf("%d", &c);
    while(c-- && scanf("%d%d", &m, &n))
        puts(m%(n+1) ? "first" : "second");
    return 0;
}

posted on 2012-07-11 13:07  andre_joy  阅读(88)  评论(0编辑  收藏  举报