← All problemsSign in

The Leaking Robot

CodeChefRating 1559Open on judge ↗

Oh no! Chef’s robot from problem "Reach The Point" (RETPO) has broken up. It's old oil tank has got leaked, it is leaking oil now. The robot start doing the following weird moves. While moving it keeps leaving a trace of oil on the path it's been tracing. Note that in a single step robot will move by one unit in the current direction it is moving. - Initially the robot is at position (0, 0). -

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