Problem 3857 · Medium
Minimum Cost to Split into Ones
Every split order pays the same total.
Math
Dynamic Programming
Open the interactive visualisation