「atcoder - agc054c」Roughly Sorted
link。高妙题,我只会到构造下界那一步……构造下界比较容易,只需要注意到交换一次最多让序列向合法迫近一步即可。则答案下界为 $\sum_i \max\{\left(\sum_{j < i...
In mathematics you don't understand things, you just get used to them.
In mathematics you don't understand things, you just get used to them.