Problem 2706 · Easy

Buy Two Chocolates

Buy exactly two chocolates with the smallest total price; keep the leftover money if it is not negative, otherwise keep all of it.

Open the interactive visualisation