HDU 1846 (巴什博弈)
来源:互联网 发布:知乎 可怕 编辑:程序博客网 时间:2024/05/16 17:48
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1846
代码:
#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;int main(){ int t,n,m; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); if(n%(m+1)) printf("first\n"); else printf("second\n"); } return 0;}
0 0
- HDU 1846 巴什博弈
- hdu 1846 巴什博弈
- HDU 1846 (巴什博弈)
- 【HDU 1846 】+ 巴什博弈
- hdu 1846 (巴什博弈)
- [HDU](1846)Brave Game ---巴什博弈(博弈)
- HDU 1846 Brave Game (巴什博弈)
- HDU 1846 Brave Game (巴什博弈)
- HDU 1846 Brave Game【巴什博弈】
- hdu 1846 巴什博弈变形
- hdu 1846 2897 巴什博弈
- HDU 1846 Brave Game (巴什博弈)
- HDU-1846-Brave Game【巴什博弈】
- HDU 1846 Brave Game(巴什博弈)
- acm--博弈入门1(巴什博弈1)--(HDU 1846 HDU 2049)
- hdu 2149+hdu 1846(巴什博弈)
- hdu 1847 (巴什博弈)
- 巴什博弈 hdu 2149
- Java并发编程:Callable、Future和FutureTask
- POJ 1470 Closest Common Ancestors(离线tarjan-LCA)
- 使用病毒库检查手机中已经安装的程序
- java ssh
- HDU 2187
- HDU 1846 (巴什博弈)
- A.c和B.c两个文件中使用了名字相同的static变量,编译的时候会不会有问题?这两个static变量存储在什么地方?
- 七层登录之机房收费系统
- iOS开发-进阶:iOS7中的多任务 - Background Fetch,Silent Remote Notifications,Background Transfer Service
- hdu5299 Circles Game
- source insight快捷键及使用技巧
- 外观模式
- 请说出const和宏定义相比有什么优点? 至少要说明两点:
- Cricle One --- 浮点陷阱的一点学习