3. There are three piles of stones on the table, with numbers , , and respectively. Two people, A and B, take turns to perform the following operation: each person can take stones from any pile in the first step, starting with A, and in each step, one of them takes one stone from a pile, but cannot take from the pile they took stones from in their previous turn. The one who cannot make a move loses. Question: Regardless of how the opponent operates, who has a sure-win strategy?
Problem 986
Official solution
3. Player A has a winning strategy.
Let the piles that initially contain , , and stones be denoted as , , and respectively.
Player A first takes one stone from pile , making the number of stones in the three piles , , and , all of which are even.
(1) If Player B does not take from pile , then Player A will always take from the same pile as Player B. Since the number of stones in each pile is even after Player A's turn, and as long as Player B does not take from the pile they took from in the previous round, Player A will not take from the pile they took from in the previous round. Therefore, Player A can always make a move after Player B. Since the game will eventually end, Player A will win.
(2) If Player B takes from pile , then Player A will follow these rules:
- If Player B takes from pile , Player A will take from pile ;
- If Player B takes from pile , Player A will take from pile ;
- If Player B takes from pile , Player A will take from pile .
Thus, after Player A's turn, pile will always have an even number of stones, and the number of stones in piles and will always be equal. Therefore, as long as Player B does not take from the pile they took from in the previous round, Player A will not take from the pile they took from in the previous round. Thus, Player A can always make a move after Player B. Since the game will eventually end, Player A will win.
In conclusion, Player A has a winning strategy.