Codeforces 1807 b. grab the candies Solution

codeforces 1807 b. grab the candies solution

problem question link Grab the Candies solution B. Grab the Candies Mihai and Bianca are playing with bags of candies. They have a row a� of n� bags of candies. The i�-th bag has ai�� candies. The bags are given to the players in the order from the first bag to the n�-th bag. If a bag has an even number of candies, … Read more