摘要: S<=50只股票D<=10天的价格给出,求第一天开始用n<=200000元最后能得到的最大钱数,保证答案<=500000。 做D次完全背包即可,每次做完把dp数组清空。 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #i 阅读全文
posted @ 2017-08-03 11:17 Blue233333 阅读(288) 评论(0) 推荐(0) 编辑