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),但常数更小,你可以想想...

Posted by richardxx at 2008-02-10 01:19:45 on Problem 2823
In Reply To:前两天看你写的那篇全英文的Segment tree&Tree Array.终于就学会线段树了..然后把这个题写了,将近10s,刚才我又交了一个用堆的。。6XXXms。。看来我的线段树写得太烂了。。 Posted by:hysramp at 2008-02-10 00:55:05
rt

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