Jokewithpermutation 题目描述 Joey had saved a permutation of integers from 1 to n in a text file.All the numbers were written as decimal numbers without
展开全文
What Goes Up Must Come Down 题意: 我们规定一个序列合理:当一个序列左部分是非降序列,右部分是非升序列(左右部分可为0,也就是整体可以为非降序列,非升序列) 题解: 树状数组来做其实就是求左右的逆序对,我们枚举中简单i,然后区间[l,i]的逆序对和[i,r]的反向逆序对详
展开全文