Mohammad has recently visited Switzerland. As heloves his friends very much, he decided to buy somechocolate for them, but as this fine chocolate is very expensive(You know Mohammad is a little BIT stingy!),he could only afford buying one chocolate,…
Description Colonel has n badges. He wants to give one badge to every of his n soldiers. Each badge has a coolness factor, which shows how much it's owner reached. Coolness factor can be increased by one for the cost of one coin. For every pair of so…