CF600E-Lomsat gelral 题目: 题目描述: You are given a rooted tree with root in vertex
1 . Each vertex is coloured in some colour. Let’s call colour
c dominating in the subtree of vertex
v if there are no other colours that appear in the subtree of vertex
v more times than colour
c .