Problem 4014 · Medium

Minimum Total Price After Applying Discounts

Pair the largest discounts with the largest prices, because every saving is a product of a price and a discount.

Open the interactive visualisation