Grab the Candies

Problem Name:
Grab the Candies
Site:CodeForces
Links:
Tags:
Problem setters: