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 |
呵呵,这是我的第一个并查集,发帖庆贺一下受first 启发,我把找祖先的循环该成递归函数,并去掉最后一个搜索祖先的循环,一下子就AC了,不过还是没有first的程序快,我的慢了200ms,人家是牛人呀。。。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator