CF703C Chris and Road
Solution Sketch
Key idea
Think of the slope of the line $m = \frac{u}{v}$. What can you do with it?
Never give up!
Think of the slope of the line $m = \frac{u}{v}$. What can you do with it?
One crucial observation is: all pupils must spend the same amount of time on bus, or the last student to arrive will need a longer time than the optimal solution.