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 BGW991111 at 2010-05-25 23:35:55 on Problem 1014
用多重背包来解  
对于此题 背包价值cost为i(1<=i<=6)  背包重量weight也为i  
我的思路是 求容量为sum/2 背包的最大价值能否达到sum/2  也就是判断f[sum/2]?=sum/2
不知此思路可否 ??

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