#P9804. Alice Game
Alice Game
Alice Game
Problem Description
Alice and Bob are playing a game. There are n monsters in the game, and they stand in a line. Alice and Bob take turns. Each turn, the player can choose one of two actions:
- Destroy a consecutive monster sequence of size less than or equal to . Note that you must destroy monsters in the continuous sequence of your choice.
- Select consecutive monsters to destroy, and after destroying these monsters, the sequential monster sequence in which they were originally located must be divided into two non-empty sequences. The two remaining sequences will not be considered continuous. Here is an example of operation 2, if and there are four monsters in the field. Now we can destroy monsters because they are continuous, and after destroying them we can be left with monsters ( means the area is empty). But we cannot destroy the monster or , because the remaining two sequences must be non-empty (in fact, if we do this, only one continuous sequence remains). Similarly, we can't destroy monsters or because monsters and are not continuous. When a player cannot operate, he loses. Now, Alice will play the game first. She wants to know, can she win at this game?
Input
An integer indicates that there are groups of data. Next rows. Enter two integers and on each line. Guarantee $ 1 \le T \le 10000, 2 \le K \le 10^7, 0 \le n \le 10^9$.
Output
Output total lines. If Alice can win, output "Alice", otherwise output "Bob".
Sample Input
2
2 2
2 3
Sample Output
Alice
Bob
Source
2023“钉耙编程”中国大学生算法设计超级联赛(2)