Problem 3385 · Hard

Minimum Time to Break Locks II

A sword gains X energy per minute, starting at X = 1; each broken lock needs its full strength in energy, then the energy resets and X grows by 1. Choose the order of the locks that gives the fewest total minutes.

Open the interactive visualisation