← All problemsSign in

Assistance Required

Dr. Goodwill is in a pickle! The evil Prof. Hades has kidnapped and reprogrammed his beloved robots Alice (called $A$ from here on) and Bob (called $B$ from here on) and made them the part of a cruel game. He has placed $A$ and $B$ on a $(2N+1) \times M$ board (coordinate system used for the board is $(X,Y)$ where $1 \le X \le (2N+1), 1\le Y \le M$). The board is made up of black and white tiles.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start