Problem 3789 · Medium

Minimum Cost to Acquire Required Items

Buy single-requirement units or combined units at fixed prices; the cheapest split only needs to test a few candidate counts of combined units.

Open the interactive visualisation