摘要:
C 原式$\sum{|a_i-(b+i)|}$可以转化为$\sum{|(a_i-i)-b|}$ $b_i=a_i-i$ 即求$\sum{|b_i-b|}$, D 先要想到切中间那刀。 方法一:piont to point 方法二:二分答案(ggg) E $i or j\leq k$可以转化为$i o 阅读全文
摘要:
sliver Each of his M cows has two favorite pastures. Some of his cows have a dietary restriction that they should only eat one type of grass consisten 阅读全文