Problem 2702 · Medium

Minimum Operations to Make Numbers Non-positive

Binary search the operation count k; each value needs picks for the amount k shared y-losses cannot cover, and k picks must be enough.

Open the interactive visualisation