#arc163e. [arc163_e]Chmin XOR Game
[arc163_e]Chmin XOR Game
Problem Statement
Alice and Bob are playing a game using a length- sequence of non-negative integers .
Starting with Alice, they take turns performing the following operation. The player who cannot make a move first loses.
- Choose a non-negative integer such that there is an integer satisfying .
- For each , replace with .
Determine who wins when both players play optimally.
Here, represents the bitwise XOR.
You are given test cases. Find the answer for each of them.
Constraints
Input
The input is given from Standard Input in the following format:
Here, is the -th test case. Each test case is given in the following format:
Output
Print lines.
The -th line should contain Alice
if Alice wins, and Bob
if Bob wins in the -th test case.
Sample Input 1
5
2
3 1
5
1 1 1 1 1
4
0 0 0 0
4
8 1 6 4
5
3 8 7 12 15
Sample Output 1
Bob
Alice
Bob
Bob
Alice
In the first test case, one possible game progression could be as follows.
- Alice chooses . This choice is valid because for .
- becomes .
- Bob chooses . This choice is valid because for .
- becomes .
- Since Alice cannot choose any , the game ends.
In this case, Bob wins.
In the second test case, one possible game progression could be as follows.
- Alice chooses . This choice is valid because for .
- becomes .
- Since Bob cannot choose any , the game ends.
In this case, Alice wins.