Rosetta Problems

Tricolor Pyramid

https://atcoder.jp/contests/arc117/tasks/arc117_c