Problem 3181 · Hard

Maximum Total Reward Using Operations II

Collect rewards in increasing order; each reward extends the totals that were reachable below it, a 0/1 knapsack over sums.

Open the interactive visualisation