#ABC054A. One Card Poker
One Card Poker
题目描述
Alice and Bob are playing One Card Poker.
One Card Poker is a two-player game using playing cards.
Each card in this game shows an integer between 1
and 13
, inclusive.
The strength of a card is determined by the number written on it, as follows:
Weak 2
3
4
5
6
7
8
9
10
11
12
13
1
Strong
One Card Poker is played as follows:
- Each player picks one card from the deck. The chosen card becomes the player's hand.
- The players reveal their hands to each other. The player with the stronger card wins the game.
If their cards are equally strong, the game is drawn.
You are watching Alice and Bob playing the game, and can see their hands.
The number written on Alice's card is , and the number written on Bob's card is .
Write a program to determine the outcome of the game.
爱丽丝和鲍勃正在玩_一张牌扑克。
单张扑克牌是一种使用扑克牌的双人游戏。游戏中的每张牌都显示一个介于 "1 "和 "13 "之间的整数。
一张牌的强弱由上面写的数字决定,如下所示:弱
2
3
4
5
6
7
8
9
10
11
12
13
1
强单张牌扑克的玩法如下:
- 每位玩家从牌组中选取一张牌。选中的牌成为玩家的手牌。
- 玩家互相亮出自己的手牌。牌力较强的玩家获胜。
如果双方牌力相当,则抽签决定。您正在观看 Alice 和 Bob 玩游戏,可以看到他们的手牌。
写在爱丽丝牌上的数字是 ,写在鲍勃牌上的数字是 。
请编写一个程序来确定游戏的结果。
输入格式
输入内容按以下格式标准输入:
输出格式
如果 Alice 将获胜,则打印 Alice
。如果 Bob 将获胜,则打印 Bob
。如果游戏将抽签,则打印 Draw
。
样例 #1
样例输入 #1
8 6
样例输出 #1
Alice
样例 #2
样例输入 #2
1 1
样例输出 #2
Draw
样例 #3
样例输入 #3
13 1
样例输出 #3
Bob
说明
数据规模与约定
- 和 都是整数。
样例 解释
8 "写在爱丽丝的卡片上,"6 "写在鲍勃的卡片上。爱丽丝的牌较强,因此输出结果应该是 Alice
。
样例 解释
由于他们的牌有相同的数字,游戏将被抽出。
相关
在以下作业中: