← All problemsSign in

Race Time!

After attending Amrita summer training camp, N programmers, getting bored of programming, decided to have a car race. Each of them bring their own car to the race. As the camp also includes school children, to level the playing field, some of the coders are allowed to have a head start. The ith programmer starts his race at a distance Di ahead of the starting line at time T = 0. The speed of the

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