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

这个改成O(n^3)也很容易的

Posted by sandytea at 2011-04-11 08:02:43 on Problem 1018
In Reply To:将N^4改进为N^3*logN算法. Posted by:intheway at 2009-11-17 21:08:53
用一个数组记录每一行处理到第几个位置了,然后每次移动一个指针就行了。

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