codeforces 246 D. Colorful Graph (set)
D. Colorful GraphYou've got an undirected graph, consisting of n vertices and m edges. We will consider the graph's vertices numbered with integers from 1 to n. Each vertex of the graph has