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

Re:加上RMQ勉强才过

Posted by ajianhouyuan at 2015-04-22 17:02:17 on Problem 2201
In Reply To:Re:加上RMQ勉强才过 Posted by:towerpoj at 2010-08-23 23:54:10
> 请问加RMQ有什么用??
用RMQ求某一范围value最小的点,先求1到n,得到value最小点i,再求1-i,i-n这两个范围的value最小节点做左右子节点.这题有O(n)的方法,用RMQ有点慢了.

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