![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
文章平均质量分 88
qq_37804064
这个作者很懒,什么都没留下…
展开
-
垃圾佬的旅游II-并查集
垃圾佬的旅游IITimeLimit:3000MS MemoryLimit:128MB64-bit integer IO format:%lld已解决 | 点击收藏Problem Description继上次的长期旅行,这回垃圾佬要和静静去双人旅行了。他们一共想要游览n个景点。景点之间交通非常发达,景点之间一共有m条可行的双向路。但是要知道,静静是会晕车的,看到她难受,垃圾佬是会心疼的。已知有n个...原创 2018-03-18 00:08:14 · 223 阅读 · 0 评论 -
Nearest Common Ancestors-最近公共祖先
Nearest Common AncestorsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 32443 Accepted: 16505DescriptionA rooted tree is a well-known data structure in computer science and engineering. An e...原创 2018-04-04 00:16:08 · 198 阅读 · 0 评论