![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
哈拉泽空
如果你什么都知道,那你肯定错了
展开
-
1118 Birds in Forest (25分)【关于PAT中使用并查集的坑点】
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...原创 2020-01-27 17:03:08 · 214 阅读 · 0 评论 -
CodeForces1209 D.Cow and Snacks
The legendary Farmer John is throwing a huge party, and animals from all over the world are hanging out at his house. His guests are hungry, so he instructs his cow Bessie to bring out the snacks!...原创 2019-09-22 20:51:11 · 313 阅读 · 0 评论