![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 81
小雪乃
这个作者很懒,什么都没留下…
展开
-
PAT 甲级 1114. Family Property (25)
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 fa原创 2017-10-18 07:54:36 · 187 阅读 · 0 评论 -
PAT 甲级 1107. Social Clusters (30)
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. A "social cluster" is a set of people who have some of th原创 2017-10-09 21:32:11 · 181 阅读 · 0 评论 -
PAT 甲级 1118. Birds in Forest (25)
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 maxim原创 2017-10-20 01:52:03 · 173 阅读 · 0 评论