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

我觉得还是算最多输几轮,然后再用N去减更好。

Posted by 11119999 at 2006-08-17 14:29:24 on Problem 1323
这样做可以省很多空间,而且时间也会快不少的。。。不过要先排个序,然后就去一个一个往后顺序找就可以了,可以复杂度虽然也是0 M×N的,但是最优CASE时候只是0 N的,嘿嘿。

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