Fork me on GitHub
摘要: #include<stdio.h> #include<stdlib.h> int V[100][100];//前i个物品装入容量为j的背包中获得的最大价值 int max(int a,int b){ if(a>=b) return a; else return b; } int KnapSack(i 阅读全文
posted @ 2020-10-29 15:12 暗里有光 阅读(113) 评论(0) 推荐(0) 编辑
1