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

Re:总是RE,哪位高手帮我看看错误在哪呀

Posted by wanghaishanren at 2008-05-02 21:38:12 on Problem 2236
In Reply To:总是RE,哪位高手帮我看看错误在哪呀 Posted by:wanghaishanren at 2008-05-02 18:06:29
搞了一天,终于AC了!
在Union中加了下面一个条件:
	if (aRoot != bRoot)
	  parent[aRoot] = bRoot;

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