Rosetta Problems

バームクーヘン (Baumkuchen)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/272