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 |
建议理解算法之后抛开书本写,这样你写对的机会比对着书写要大得多In Reply To:Re:try using disjoint-set Posted by:lovezqian at 2006-11-29 14:45:15 > 我用了disjoint set,并且在一本算法书:《算法基础》(Fundamentals of Algorithmics)上找到了此问题的算法。我原封不动地照着书上的方法实现的,但是在哈工大的ACM:http://acm.hit.edu.cn/ojs/show.php?Proid=1225&Contestid=0上还是超时。我很不理解,书上那个算法可是O(nlogn)的啊! > 有哪位高手能帮忙看一下? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator