Rosetta Problems

Clay Crafting Contest

https://atcoder.jp/contests/awc0173/tasks/awc0173_e