Rosetta Problems

Cutting a Rope

https://atcoder.jp/contests/awc0038/tasks/awc0038_c