Alice and Bob revisited
CodeChefOpen on judge ↗
Alice and Bob are playing a game. They have a rectangular board of size n*m.The board contains n*m small grids of unit area. In each turn a player has to choose a particular grid and all the grids lying in the same column and the same row as that grid (including that grid) are destroyed and the game is played independently in the remaining four or fewer smaller rectangular boards. Both the players
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