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 |
我觉得还是算最多输几轮,然后再用N去减更好。这样做可以省很多空间,而且时间也会快不少的。。。不过要先排个序,然后就去一个一个往后顺序找就可以了,可以复杂度虽然也是0 M×N的,但是最优CASE时候只是0 N的,嘿嘿。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator