Rosetta Problems

Ribbon Cut

https://atcoder.jp/contests/awc0074/tasks/awc0074_a