Rosetta Problems

Painting Graphs with AtCoDeer

https://atcoder.jp/contests/arc062/tasks/arc062_d