难题啊! 二分+优先队列+dp d[i]=max(sum[i]-sum[j]) (i-y<j<i-x) 优先队列处理 转载于:https://www.cnblogs.com/zhaozhe/archive/2011/08/12/2136487.html