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

500ms以下的怎么做到的?

Posted by xiao1590 at 2017-03-14 06:00:55 on Problem 3368
我是离散化用ST做RMQ
建立ST复杂度O(nlogn),查询是常数级的复杂度,总体应该是O(nlogn + q),但是用时依然1000+ms

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