摘要: 题意: 有n个数,每个数都有价钱,连续的取可以获得len*len的利益,使利益最大。 思路: 三维DP,1、2、3维分别是第i个,剩余多少钱,从后往前连续的有几个。 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0); 2 #include 阅读全文
posted @ 2019-11-08 19:04 ZMWLxh 阅读(211) 评论(0) 推荐(0)