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

Re:But further observation reveals that only those indices in the set I = { l, k } ∪ { i : l < i < k ∧ opti > max i < j ≤ k { aj } } are worth considering.

Posted by frkstyc at 2007-12-29 14:34:32 on Problem 3017
In Reply To:Re:But further observation reveals that only those indices in the set I = { l, k } ∪ { i : l < i < k ∧ opti > max i < j ≤ k { aj } } are worth considering. Posted by:Thank_you at 2007-12-29 13:54:20
来到k=6的时候l=4,k=6了,所以I={4,6},取4的话那么就是opt_3+a_4=10,取6就是opt_5+a_6=16,你挑一个吧

> 现在的解题报告改成您描述的那样的了。
> 但是这样的话(样例的前6个数字)
> 
> n=6,m=17;
> 
> idx  1 2 3 4 5 6
> opt  2 2 2 8 8 ?
> arr  2 2 2 8 1 8 
> 
> 这样前5个的opt求出来了,求第6个的时候,如果按照解题报告上的说法,是应该取第几个呢?
> 实际上的情况应该是取第3个值的时候得到opt(6)=10吧。
> 所以还是不是很理解,劳烦st大哥了。
> 

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