Rosetta Problems

マシュマロ(Marshmallow)

https://atcoder.jp/contests/k2pc-hard/tasks/k2pc001_h4