2011阿里巴巴程序设计公开赛 / 1001 Coin Game
来源:互联网 发布:病理图像分析软件 编辑:程序博客网 时间:2024/06/02 20:23
博弈。暂略。
代码:
#include<cstdio>#include<iostream>using namespace std;int main(){ int t;int a,b; scanf("%d",&t); for(int i=1; i<=t; i++){scanf("%d %d",&a,&b);if(b==1){if(a%2==0){printf("Case %d: second\n", i);}else{printf("Case %d: first\n", i);}}else if(b>=a){printf("Case %d: first\n", i);} else{printf("Case %d: second\n", i); } } return 0;}
- 2011阿里巴巴程序设计公开赛 / 1001 Coin Game
- 2011阿里巴巴程序设计公开赛 1001 Coin Game
- 2011阿里巴巴程序设计公开赛 / 1009 Board Game Dice
- 2011阿里巴巴程序设计公开赛 / 解题报告 8.18
- 2011阿里巴巴程序设计公开赛 / 1002 Fruit Ninja
- 2011阿里巴巴程序设计公开赛 总结(by胡浩)
- 2011阿里巴巴程序设计公开赛 / 1004 Level up
- HDU 3952 2011阿里巴巴程序设计公开赛
- 2011 阿里巴巴程序公开赛
- 2011百校联动“菜鸟杯”程序设计公开赛&&Flip Game
- 2011阿里巴巴程序设计公开赛 1003 I'll play a trick on you
- 2011阿里巴巴程序设计公开赛 / 1003 I'll play a trick on you
- 阿里巴巴公开赛 HDU 3959 Board Game Dice(数学)
- hdu Coin Game(11阿里巴巴网络赛)
- 阿里巴巴2011公开赛1004 Level up HDU 3954 线段树
- 2011百校联动“菜鸟杯”程序设计公开赛-解题报告
- 2011百校联动“菜鸟杯”程序设计公开赛
- 2011百校联动“菜鸟杯”程序设计公开赛 &&Powerful Incantation
- c中for 循环里可以初始化变量吗
- ACMSTEP 3.1.3 母牛的故事 //递推
- Excel导入SqlServer数据库(一)
- 今天关注了一下电驴
- dojo笔记2
- 2011阿里巴巴程序设计公开赛 / 1001 Coin Game
- windows下如何下载android源码
- 2011阿里巴巴程序设计公开赛 1001 Coin Game
- Perl之单行命令特技
- C++冒泡排序模板
- Milllion Dollar Habits
- 2011阿里巴巴程序设计公开赛 1003 I'll play a trick on you
- VIM常用命令
- 回文字符串 的添加问题