摘要: /*一直没复习;感觉以前学的忘光了*/#include #include #include #include #include #include #include #define maxn 3500 int cost[maxn],worth[maxn]; int dp[12885]; using namespace std; int max(int a, int b) { return a>b?a:b; } void ZeroOnePack(int cost, int worth, int V) { for(int j = V; j >= cost; j--) dp[j]... 阅读全文
posted @ 2013-04-14 16:36 简洁是智慧的灵魂 阅读(143) 评论(0) 推荐(0)