您的位置:首页 > 运维架构 > Shell

HDU 1846 Bash博弈

2016-07-27 18:21 423 查看
该题为果Bash博弈,不懂的见博主的三种最基础博弈知识模型。

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int t,n,m;
scanf("%d",&t);
while(t--)
{
scanf("%d%d",&n,&m);
if(n%(m+1)) puts("first");
else puts("second");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: