Rosetta Problems

Colorful Graph

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