It is a Python Programming problem. You and K1 friends want to buy N different pieces of candy. Candy piece i costs pi.