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 yy17yy at 2011-05-30 07:24:25 on Problem 1513
我是先贪心一遍,,,得到最少需要的lecture,,,,
然后n^3的dp,,可是速度太慢了啊,,,500++ms,,,那些几十ms的怎么做的????

我又优化了一下,,在得到lecture之后,,从右向左扫描一遍,,得到前i个点最右放到第几个lecture,,可是还是400多ms,,,怎么优化啊??

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