Rosetta Problems

Stacking Blocks

https://atcoder.jp/contests/awc0149/tasks/awc0149_d