← All problemsSign in

Driving in the Circular Field

There is a circular path around a sports field. Suppose Chef and his friend James both start driving from the same point **P** at the same time and move in the same direction. They decided to stop driving when they meet again at the starting point **P** for the first time. If the chef takes **X** minutes to drive one round of the field, while his friend James takes **Y** minutes for the same, Cal

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