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 497597816 at 2007-06-02 07:45:25 on Problem 2524
受first 启发,我把找祖先的循环该成递归函数,并去掉最后一个搜索祖先的循环,一下子就AC了,不过还是没有first的程序快,我的慢了200ms,人家是牛人呀。。。

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