Tic Tac Toe
Two drunken players Alice and Bob are playing a modified version of Tic-Tac-Toe. Initially, there is a $N \times M$ empty grid. Alice and Bob take alternate turns **starting with Alice**. In her turn, Alice chooses an empty cell on the board and puts a `"A"` on the chosen cell. In Bob's turn, he chooses an empty cell and puts a `"B"` on the chosen cell. The player who first gets any $K\times K$
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start