Rosetta Problems

カメレオンの恋 (Chameleon's Love)

https://atcoder.jp/contests/joisc2020/tasks/joisc2020_d