[Solution] Christmas Game Codeforces Round #711

Christmas Game Solution Codeforces Alice and Bob are going to celebrate Christmas by playing a game with a tree of presents. The tree has nn nodes (numbered 11 to nn, with some node rr as its root). There are aiai presents are hanging from the ii-th node. Before beginning the game, a special integer kk is chosen. The game proceeds as follows: Alice begins the game, with … Read more