10608专题

UVA 10608 - Friends (并查集)

Problem I FRIENDS   There is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that “The friends of my friends are my friends, too” it