随笔分类 - Disjoint-set
Union Find set
摘要:Disjoint-set namely Union-Find set!hdu 3172virtual friends http://acm.hdu.edu.cn/showproblem.php?pid=3172Yes! A very interesting problem!Whenever a friendship is formed,printfthe number of the peoplein the social network.OK, I failed lots of time. And all are "Time Limit Exceeded".But to m
阅读全文