MANSION GUARD
CodeChefOpen on judge ↗
Mr.Gaitonde has spotted burglars in his mansion and he wants Bunty to take charge of the security. The entire land is under his control and it is divided into a grid of 1x1 squares. There are several high (same)speed bikes stationed in distinct grids which move only in horizontal or vertical directions (they cannot move diagonally, in particular). The bikes reach an adjacent grid square in unit ti
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