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 B10330224 at 2012-09-04 14:10:57 on Problem 3017
100000 1000000000000000
1000000 999999 999998 。。。。 
因为队列会越来越满,所以暴力遍历单调队列中的元素肯定会超时
这题平衡树如果用set的话反而会比暴力的慢

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