Problem 2288 · Medium

Apply Discount to Prices

Replace each word that is a dollar sign followed only by digits with its discounted price, written with exactly two decimals.

Open the interactive visualisation