Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
用DP做的,WA,不知为什么!!!思路:设置二维动态规划数组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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator