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:O(n^2)预处理,O(1)查询

Posted by 117474335 at 2010-10-01 09:31:01 on Problem 2019
In Reply To:O(n^2)预处理,O(1)查询 Posted by:applepi at 2010-09-29 22:24:07
单调队列的时间复杂度为O(n),所以搂主是n^2的,没有什么高深的东西。

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