Problem 2312 · Hard

Selling Pieces of Wood

Value each sub-board as its best single piece or its best cut into two smaller boards.

Open the interactive visualisation