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:大概思路是这样的

Posted by frkstyc at 2005-05-10 14:43:48 on Problem 2182
In Reply To:大概思路是这样的 Posted by:TN at 2005-05-10 14:37:36
我想的是记录已经出现多少个,复杂度都会升高吗?

> 线段树的节点纪录从l..r中还有多少没有出现
> 从后往前推
> 第i个人就是从1..n中还未出现的第Ai+1个
> 

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