Problem 877 · Medium
Interval DP on the best score lead a player can force on every sub-row of piles.
Open the interactive visualisation