Andrey Kim's submission of Splitting Candies | CodeChef