Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

最喜欢买一送一的题了

Posted by martinakm at 2010-05-06 20:51:58 on Problem 1703
注意x和y已经在一个集合里了时,不可以在对x,y再次进行Union操作,否则会导致find(x)或find(y)的时候递归不能返回,也即并查集的根标志被破坏了,会RE哦~

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator