CodeForces 1027D 并查集做法 最简单的做法没有之一
题目链接:http://codeforces.com/problemset/problem/1027/DMedicine faculty of Berland State University has just finished their admission campaign. As usual, about80%80%of applicants are girls and majori...