New Robot
CodeChefOpen on judge ↗
Engineers have invented a new intelligent robot to measure the area of agricultural field. This robot helps farmers to find the total cost required for ploughing the field. This robot circulates the boundary of the field and records the direction it has travelled in the form of left and right. It also records the distance travelled after each turn. The only problem engineers are having now is to
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