#P4136. 谁能赢呢?
谁能赢呢?
Description
Xiao Ming and Xiao Hong often play a game. Given an board, a stone is placed at the upper-left corner. They take turns moving the stone. On each turn, a player may move the stone exactly one cell in one of the four directions: up, down, left, or right, and the destination cell must not have been visited before. The player who cannot move loses.
If Xiao Ming moves first and both players play optimally, who will win?
Input Format
There are multiple test cases.
Each test case consists of a single integer , the size of the board, on its own line.
Input ends when .
Output Format
For each test case, if Xiao Ming eventually wins, output Alice; otherwise output Bob. Print one answer per line.
2
0
Alice
Hint
- For of the testdata, .
- For of the testdata, .
- For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号