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

用DP做的,WA,不知为什么!!!

Posted by applesun at 2008-03-10 14:34:53 on Problem 1018
思路:设置二维动态规划数组a[i][j]表示第i种零件取第j个供应商的最佳band 和 price,其中二维数组的元素是个结构性质,保存band 和 price.
计算a[i][j]的时候就是遍历a[i-1][j]中的所有元素,取出与a[i][j]构成最优的元素,然后修改a[i][j]中的band 和 price!

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