Rosetta Problems

パンケーキ (Pancake)

https://atcoder.jp/contests/joi2021yo2/tasks/joi2021_yo2_b