Problem 2335 · Easy

Minimum Amount of Time to Fill Cups

Each second fill the two cups that still need the most water; the answer is the larger of the biggest cup and half the total.

Open the interactive visualisation