Twin Robots
CodeChefOpen on judge ↗
You have a board divided into $N×N$ squares and two robots, $R_2D_2$ and $C_3PO$. Each square on the board has a number written on it. $R_2D_2$ starts at the top left corner square of the board and $C_3PO$ starts at the top right corner square of the board. Your aim is to move the robots so that $R_2D_2$ reaches the bottom right corner square and $C_3PO$ reaches the bottom left corner square. You
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