「CodeForces 600E」 Lomsat gelral 2019-10-29 #树上启发式合并 You are given a rooted tree with root in vertex 1. Each vertex is coloured in some colour. Read More ~