摘要: #include using namespace std;const int N = 3;//物品个数const int V = 5;//背包最大容量int weight[N + 1] = {0,3,2,2};//物品重量int value[N + 1] = {0,5,10,20};//物品价值in... 阅读全文
posted @ 2014-08-28 19:31 HuberyQian 阅读(204) 评论(0) 推荐(0) 编辑