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 tzkq at 2010-01-25 01:55:52 on Problem 3277
我采用的是qsort+线段树

通过排序把问题转化成区间覆盖, 而线段树正好解决这一问题

开始采用的是动态分配内存,tle了, 后来改成静态, 300ms通过, 不过数组开到了3M, 内存用去了30M

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