Problem 1383 · Hard

Maximum Performance of a Team

Sweep engineers by efficiency, keep the k fastest in a min heap, and take the best sum times the current efficiency.

Open the interactive visualisation