Problem 2240 · Medium

Number of Ways to Buy Pens and Pencils

Count affordable combinations of two item types, including buying none.

Open the interactive visualisation