51nod 1066 Bash游戏
2016-03-03 23:37
597 查看
博弈论问题。
#include <iostream> int main() { int t; std::cin >> t; while (t--) { int n, k; std::cin >> n >> k; if (n % (k + 1) == 0) std::cout << "B\n"; else std::cout << "A\n"; } return 0; }
相关文章推荐
- Shell脚本中赋值变量时单引号‘和双引号“的区别
- linux shell中单引号、双引号、反引号、反斜杠的区别
- pod install -bash: pod: command not found的解决办法
- shell 控制输出格式 echo printf
- 编程学习第一天,python,powershell
- how to clear screen in python shell
- 利用gitbash上传项目到github
- linux shell 编程笔记 - 后台执行命令crontab
- VNC 登录上去灰屏,没有shell脚本,鼠标变成X
- VNC 登录上去灰屏,没有shell脚本,鼠标变成X
- Linux shell的标准输入、输出和错误
- 利用shell批量更改文件后缀名
- printf 遇到bash重定向
- 使用deb-src包重新编译bash使之能够输出日志到rsyslog的local1
- [备忘][转]使用crontab,让linux定时执行shell脚本
- linux shell 编程笔记 - 常用的find和xargs
- 编写个shell脚本将/home/test 目录下大于10K的文件转移到/tmp目录下
- shell type使用
- 手把手教你编写一个具有基本功能的shell(已开源)
- bash的配置文件类型