Problem 1711 · Medium

Count Good Meals

Count pairs of meals whose total deliciousness is a power of two. The visual counts each value and checks every power of two for matching partners.

Open the interactive visualisation