摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6804 给出两个班的人,每个人具有力量与颜值两个属性。要求在两个班级中分别选取任意个人,使得各班力量总和相同,求总颜值的最大值。 01背包 ?——> 取负优化 由于数据较大,直接求和的话我们的内存伤不起。 阅读全文
posted @ 2020-08-13 20:57
LegendN
阅读(140)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6853 提示:头文件一定要多...不然编译不过doge #include<iostream> #include<fstream> #include<algorithm> #include<queue> # 阅读全文
posted @ 2020-08-13 20:46
LegendN
阅读(175)
评论(0)
推荐(0)