01背包+二维费用问题 ```//https://www.dotcpp.com/oj/problem3056.html#include#include#includeusingnamespacestd;constintN=1010,M=510;intn,V1,V2;intv1[N], 题解列表 2023年02月28日 0 点赞 0 评论 555 浏览 评分:0.0
3056: 宠物小精灵之收服 摘要:解题思路:01背包 两个限制条件, 双重循环倒序遍历 f[i][j]表示i个精灵球j伤害值最多收获的精灵注意事项:得到大值,再找最小的j参考代码:#include<iostream> #includ…… 题解列表 2024年04月29日 0 点赞 0 评论 514 浏览 评分:10.0