Array
3186. Maximum Total Damage With Spell Casting
Given an array power of spell damages. If you cast a spell with damage v, you cannot cast spells with damage v−2, v−1, v+1, v+2. Each spell in the array is usable at most once (identical values are…
Loading…