会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
阡陌向阳
博客园
首页
新随笔
联系
管理
随笔分类 -
背包问题
背包 http://blog.csdn.net/insistgogo/article/details/8579597
摘要:#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
阅读(210)
评论(0)
推荐(0)
公告