Problem 2865 · Medium

Beautiful Towers I

Pick a height for every tower within its cap so that the heights form a mountain shape with the largest total. The visual draws bars with their caps and sweeps outward from each possible peak.

Open the interactive visualisation