Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:加上RMQ勉强才过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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator