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 newser at 2008-09-22 12:28:53 on Problem 2259
有若干组元素,现在要将这些元素放入一个队列中,当然有时也要从队列中取出元素。从队列里面取一个元素时,得到的是队列的第一个元素;但是向队列里放入一个元素时,要查找一下队列里是否有和这个元素同一个组的元素,如果有,那么将这个元素直接插入到队列里和它同一个组的所有元素中最晚插入的那个元素后面。所有插入和取出操作应该在常数时间内完成。

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