Problem 3186 · Medium

Maximum Total Damage With Spell Casting

Group spells by power, then choose which powers to cast so that no two chosen powers are one or two apart.

Open the interactive visualisation