HEXABOT
CodeChefOpen on judge ↗
Problem description. Dexter has made a robot named Hexabot. Hexabot moves in a series of one-sixth circular arcs (60°). (This image is for Pentabot, arcs of 72 degrees. See explanation for more details) At any point it can either move in a clockwise or an anticlockwise direction, but it cannot turn on the spot. It is allowed to cross its path and it is allowed to traverse an arc more than
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