Problem 3074 · Easy

Apple Redistribution into Boxes

Sort the box capacities from largest to smallest and take boxes until their total holds every apple.

Open the interactive visualisation