Tanky WooRSS

HDOJ 1846 Brave Game

19 Aug 2010
这篇博客是从旧博客 WordPress 迁移过来,内容可能存在转换异常。

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


标准的BASH博弈 相关资料见: http://www.wutianqi.com/?p=1081

#include 
int main()
{
    int nCases, n, m;
    scanf("%d", &nCases;);
    while(nCases--)
    {
        scanf("%d %d", &n;, &m;);
        n%(m+1)==0? printf("second\n") : printf("first\n");
    }
    return 0;
}