Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
最喜欢买一送一的题了注意x和y已经在一个集合里了时,不可以在对x,y再次进行Union操作,否则会导致find(x)或find(y)的时候递归不能返回,也即并查集的根标志被破坏了,会RE哦~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator