摘要: Description Input Output Sample Input 4 -1 10 -20 2 2 3 4 Sample Output 9 HINT 似乎逐渐掌握了斜率优化的规律,,, f[i]=max{f[j]+a*(sum[i]-sum[j])2+b*(sum[i]-sum[j]+c} 阅读全文
posted @ 2018-09-05 22:44 InWILL 阅读(148) 评论(0) 推荐(0)
摘要: Description 农夫John准备扩大他的农场,他正在考虑N (1 <= N <= 50,000) 块长方形的土地. 每块土地的长宽满足(1 <= 宽 < = 1,000,000; 1 <= 长 <= 1,000,000). 每块土地的价格是它的面积,但FJ可以同时购买多快土地. 这些土地的价 阅读全文
posted @ 2018-09-05 21:05 InWILL 阅读(215) 评论(0) 推荐(0)