Question 1
In a game of Nim, there are three piles with $3$, $6$, and $11$ stones. On your turn, you may remove any positive number of stones from a single pile (the player taking the last stone wins). How many stones must you remove from the pile of $11$ to reach a winning Nim-sum ($0$) position?
Xem đáp án và lời giải
Đáp án: $6$
Tính tổng XOR hai đống đầu: $3 \oplus 6 = 5$. Cần giảm đống $11$ xuống còn $5$, tức là bốc đi $11 - 5 = 6$ viên.