| IPL 2026 |
|---|
| Finished |
Alice and Bob are playing a game on $$$n$$$ piles of stones, numbered from $$$1$$$ to $$$n$$$. Initially, pile $$$i$$$ contains $$$a_i$$$ stones. Alice moves first.
On each move, the current player performs an operation once or twice. The operations are performed in succession, and each operation must be legal at the moment it is performed.
A single operation can be one of the following:
A player who cannot make a move loses.
Determine who wins if both players play optimally. If Alice wins, output any winning first move for her.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains a single integer $$$n$$$ ($$$1\le n\le 2\cdot 10^5$$$) — the number of piles.
The second line of each test case contains $$$n$$$ integers $$$a_1,a_2,\ldots,a_n$$$ ($$$1\le a_i\le 10^{18}$$$) — the initial sizes of the piles.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2\cdot 10^5$$$.
For each test case:
Each operation must have one of the following forms:
All printed operations must be legal when they are performed.
If there are multiple valid answers, output any of them.
521 223 331 1 231 1 12100000007998244353 6769676967696769
Alice 12 1 2BobAlice 22 1 31 2Alice 22 1 32 2 3Alice 21 11 2
| Name |
|---|


