Problem 2594 · Medium

Minimum Time to Repair Cars

Binary search the time: a mechanic with rank r repairs floor(sqrt(t / r)) cars in t minutes, so the total is monotone.

Open the interactive visualisation