动态规划——01背包

问题 源码 /* * problem: 0-1背包 * method: 动态规划 * date: 2020/05/07 */ #include<iostream> #include<string.h> using namespace std; const int MAX_N=10,MAX_W=20,MAX_V=10; int dp[MAX_N][MAX_W];//记忆数组 int N=4,W=5;
相关文章
相关标签/搜索