uva 1160 X-Plosives

出處

解題策略: 並查集(Union-find Algorithm)