摘要: 又见0-1背包,长度既是价值也是体积。#include#includeusing namespace std;int dp[100000];int cd[105];int main(){ int cd_sto; while(scanf("%d",&cd_sto)!=EOF) { int n; sca... 阅读全文
posted @ 2011-11-04 20:32 DChipNau 阅读(129) 评论(0) 推荐(0) 编辑