Problem 2144 · Easy
Buy every candy at minimum cost when each paid pair can cover one no-more-expensive free candy.
Open the interactive visualisation