Rosetta Problems

Cutting Swiss Roll

https://atcoder.jp/contests/xmascon16midnight/tasks/xmascon16_c