您的位置:首页 > 其它

nyoj 23 取石子(一)

2014-04-27 21:13 169 查看
题目来源:http://acm.nyist.net/JudgeOnline/problem.php?pid=23

简单的巴什博奕,博弈类型参考资料:/article/10999338.html

#include <iostream>
#include <cstring>
#include <cstdio>

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: