Codeforces Round #688 (Div. 2) 1453 B
原题链接Gildong has an interesting machine that has an array a with n integers. The machine supports two kinds of operations:Increase all elements of a suffix of the array by 1.Decrease all elements of a suffix of the array by 1.A suffix is a subsegment