Loading

摘要: 01背包 问题描述 有N件物品和一个容量为V的背包。第i件物品的体积是weight[i],价值是value[i]。求解将哪些物品装入背包可使价值总和最大。 实现代码 c++ include include using namespace std; const int Maxsize=1000+10; 阅读全文
posted @ 2019-09-28 13:53 xaopng 阅读(200) 评论(0) 推荐(0)