#JP26. 游戏
游戏
Problem Description
There are stones. Alice and Bob take turns picking up stones, with Alice going first. Each player removes one stone per turn, and the game ends when all stones are taken. At the end of the game, the player who has picked up more stones wins. If both players pick up the same number of stones, the game is a draw.
Given the value of , determine the result of the game.
Input Format
Read the data from the file game.in
.
Each test contains multiple test cases.
The first line contains an integer , representing the number of test cases.
For each test case, there is a single line containing a positive integer , representing the number of stones.
Output Format
Output to the file game.out
.
For each test case, output a single line containing a string representing the result of the game. Output Alice
if Alice wins, Bob
if Bob wins, or Draw
if the game is a draw.
Samples
2
2
3
Draw
Alice
【Sample #1 Explanation】
For the first test case: There are stones. Alice takes one stone first, and Bob takes the remaining stone. The game ends, with each player having picked up stone. The result is a draw.
For the second test case: There are stones. Alice takes one stone, Bob takes another, and then Alice takes the last stone. The game ends, with Alice having picked up stones and Bob stone. Alice wins.
【Sample #2】
See the attached files game/game2.in
and game/game2.ans
。
This sample satisfies .
【Sample #3】
See the attached files game/game3.in
and game/game3.ans
。
This sample satisfies 。
【Sample #4】
See the attached files game/game4.in
and game/game4.ans
。
This sample satisfies the conditions for any test case.
Constraints
- For of the data, .
- For of the data, .
- For of the data, , .
Attachment Download
统计
相关
在下列比赛中: