Rosetta Problems
← atcoder に戻る
Ribbon Cut
https://atcoder.jp/contests/awc0074/tasks/awc0074_a