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:不仅要取最大的,还要取最小的.因为对于乘法来说,两负数的乘积可能会大于两正数的乘积.

Posted by ecjtuxsyuan at 2008-09-19 20:18:05
In Reply To:我用的是O(N^3)的DP。对于每一段,枚举分割点,分割点左、右两边分别取到最大,然后比较怎样分割总和最大。这个算法对吗? Posted by:ImLazy at 2008-09-19 20:14:17


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