Rosetta Problems

Christmas Tree Cutting

https://atcoder.jp/contests/ahc041/tasks/ahc041_a