【并查集】
墓华
这个作者很懒,什么都没留下…
展开
-
PAT Advanced1107 Social Clusters(并查集)
链接:PAT Advanced1107When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A social cluster is a set of people ...原创 2019-01-24 11:16:02 · 141 阅读 · 0 评论 -
7-10 参与者人数(并查集)
临沂大学有很多社团,一个学生可能会加入多个社团。为了活跃大学生业余生活,增强体育运动积极性,临沂大学读书社团决定举行大学生跳绳比赛,要求该社团成员必须参加。为了扩大影响,要求只要其他社团有一个人参加,那么该社团中的每一个人都必须参加。求参加比赛至少多少人?输入格式:输入第一行包含两个整数n和m,n(0 < n <= 30000)表示学生的数目,m(0 <= m <...原创 2019-03-05 19:58:29 · 1014 阅读 · 0 评论