Problem 2281 · Hard

Sum of Total Strength of Wizards

Sum minimum strength times total strength over every contiguous group modulo 1000000007.

Open the interactive visualisation