Problem 2809 · Hard

Minimum Time to Make Array Sum At Most x

Zero the largest growers last, using a table of the best reduction for each number of zeroing operations.

Open the interactive visualisation