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

大概思路是这样的

Posted by TN at 2005-05-10 14:37:36 on Problem 2182
In Reply To:Re:刚刚写了一个线段树,确实30msAC...... Posted by:dxm at 2005-05-10 14:15:09
线段树的节点纪录从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