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)了,难道可以O(1)时间维护?

Posted by js05 at 2005-05-13 14:14:14 on Problem 2352
In Reply To:难道这题有比nlogn更快的算法?同样是nlogn,不会我的TLE,几十ms吧。。。 Posted by:js05 at 2005-05-13 14:13:17


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