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

用线段树吧,中间记录点东西,建树复杂度应该是n*logN,然后查询一次是logN

Posted by pku_ghost at 2007-08-30 17:03:57 on Problem 3368
In Reply To:我也超时啊~,使用了折半查找,依然超时~ Posted by:derness at 2007-08-30 09:46:26


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