Rosetta Problems

クリスマス飾り(Christmas Decorations)

https://atcoder.jp/contests/pakencamp-2018-day2/tasks/pakencamp_2018_day2_c