
并查集
ZCAIHUI_
卷又卷不过,躺又躺不平
展开
-
1107 Social Clusters (30 point(s))
When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. Asocial clusteris a set of people who have some of thei...原创 2019-04-17 00:01:15 · 603 阅读 · 0 评论 -
1118 Birds in Forest (25 point(s))
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maxi...原创 2019-08-06 22:59:39 · 173 阅读 · 0 评论 -
1114 Family Property (25 point(s))
This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under his/her own name, we need to know the size of each f...原创 2019-08-17 18:24:30 · 191 阅读 · 0 评论