AtCoder Grand Contest 002 D - Stamp Rally
DescriptionWe have an undirected graph with N vertices and M edges. The vertices are numbered 1 through N, and the edges are numbered 1 through M. Edge i connects vertices ai and bi. The graph i...