nyoj 23 取石子(一)

题目来源:http://acm.nyist.net/JudgeOnline/problem.php?pid=23

简单的巴什博奕,博弈类型参考资料:http://blog.csdn.net/hearthougan/article/details/20843941

#include 
#include 
#include 

using namespace std;

int main()
{
    int T, a, b;
    scanf("%d", &T);
    while(T--)
    {
        scanf("%d %d", &a, &b);
        if(a % (b+1) == 0)
            printf("Lose\n");
        else
            printf("Win\n");
    }
    return 0;
}


你可能感兴趣的:(数学题,数论,博弈,Nyoj)