Racing Dead
*When there's no more room in hell, the dead will race the earth.* Spooky and $N$ other ghosts are racing against each other. The racetrack is a straight line. To make things interesting, the ghosts start at different positions. The $i$-th ghost starts $A_i$ meters away from the finish line, and will drive at a constant speed of $B_i$ units. Unfortunately, the timer used by the ghosts can onl
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