Problem 3951 · Medium

Minimum Energy to Maintain Brightness

Each active bulb lights itself and its neighbours. Every covered time unit needs enough active bulbs, so merge the requested intervals and charge that cost once per distinct time.

Open the interactive visualisation