#P4702. 取石子
取石子
Description
Alice and Bob are playing a game.
They have piles of stones, where the -th pile has stones, and initially it is guaranteed that (). They take turns operating on the piles. In each move, a player may choose a pile that satisfies (with regarded as ) and remove one stone from it. The player who cannot make a move loses. Alice moves first, and they both play optimally. Determine who will win in the end.
Input Format
The first line contains an integer , representing the number of piles.
The next line contains numbers, where the -th number is , as defined above.
Output Format
"Alice" or "Bob", indicating who will win.
1
1
Alice
1
2
Bob
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号