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"); } }
相关文章推荐
- PowerShell管理IIS
- 巡检脚本
- Shell防止暴力破解主机
- shell编程手札
- shell实现磁盘分区由MBR转换为GPT
- CSU 1765 简单shell 模拟
- Linux:shell完美获取上月,本月,下月年月
- HDU 2897 Bash博弈变形
- /bin/bash: line 0: fg: no job control一般解决方法
- 用shell获得hadoop中mapreduce任务运行结果的状态
- Linux shell ${}简单用法
- shell 脚本 if elseif else
- linux_shell_awk 处理 文本文件 并导入excel
- shell 脚本一些参数
- jmeter中使用Beanshell处理多个枚举类型参数
- linux在shell中获取时间
- bash中的浮点数处理
- linux关于bashrc与profile的区别
- shell脚本中怎样添加多行注释
- Linux shell 之 提取文件名和目录名的一些方法