会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
198FOR
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
趣学算法
阿里巴巴与四十大盗——背包问题
摘要:# include # include using namespace std;const int M = 10000005;struct three{ double w; //每个宝物的重量 double v; //每个宝物的价值 double p; //性价...
阅读全文
posted @
2019-03-15 23:28
198FOR
阅读(204)
评论(0)
推荐(0)
加勒比海——最优装载问题
摘要:用一维数组存储古董的重量:# include # include using namespace std;const int N = 100005;double w[N];int main()输入数据double c; int n; //载重量c和古...
阅读全文
posted @
2019-03-14 21:24
198FOR
阅读(115)
评论(0)
推荐(0)
公告