Rosetta Problems

カラフルパ研

https://atcoder.jp/contests/tkppc6-1/tasks/tkppc6_1_b