Maximum Total Sum with Threshold Constraints
Unlock indexes as the step count reaches their threshold and take the largest eligible value at each step.
Unlock indexes as the step count reaches their threshold and take the largest eligible value at each step.