摘要: 题目传送门 设dp[i][j]为杀掉区间i到j之间的狼需要付出的最小代价,那么dp[i][j]=min{dp[i][k 1]+dp[k+1][j]+a[k]+b[i 1]+b[j+1]} Java代码 C++代码 include include include include include inc 阅读全文
posted @ 2017-04-27 11:08 江南何采莲 阅读(900) 评论(0) 推荐(0) 编辑