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

倒,内存块没有用splay维护就过了……罪过啊……看来数据弱

Posted by xuhaoran510 at 2011-04-15 18:52:10 on Problem 1193
rt
这题如果要比较好的理论时间复杂度其实应该用两个平衡树,一个存储正在运行的进程,关键字是结束时间,一个存储空闲的内存单元段,关键字是单元的起始序号……这样可以做到O(nlgn)……但在是splay树上做二分查找会比较麻烦……如果要不麻烦就直接链表暴力存储空闲内存段吧%……

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