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 |
推荐大家看Levitin的《算法设计与分析》里面第136页有讲如何解决这个问题,我用他的方法一次性AC了这道题,并且思路也是很清晰,代码也很整齐,用的空间和时间是:208K 485MS 。推荐大家用这种解法,而不是用STL。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator