06 2017 档案

摘要:51Nod - 1085题目: 在N件物品取出若干件放在容量为W的背包里,每件物品的体积为W1,W2……Wn(Wi为整数),与之相对应的价值为P1,P2……Pn(Pi为整数)。求背包能够容纳的最大价值。 Input 第1行,2个整数,N和W中间用空格... 阅读全文
posted @ 2017-06-20 14:35 ACagain 阅读(96) 评论(0) 推荐(0)
摘要:Description A numeric sequence of ai is ordered if a1 #include #include using namespace std;int num[1005],dp[1005];int main(){ int ... 阅读全文
posted @ 2017-06-05 23:58 ACagain 阅读(107) 评论(0) 推荐(0)