【codeforces - 1197D】- Yet Another Subarray Problem (dp)
题目链接Youaregivenanarraya1,a2,…,anandtwointegersmandk.Youcanchoosesomesubarrayal,al+1,…,ar−1,arThecostofsubarrayal,al+1,…,ar−1,arisequalto,where⌈x⌉istheleastintegergreaterthanorequaltox.Thecostofemptysu