摘要: 区间本质不同逆序对,要求线性空间。 O(nn×n)\mathcal O(n \sqrt n \times \sqrt n)O(nn​×n​) 应该谁都会做,而且谁都知道不能过。 回顾 P5047,考虑莫队二次离线。 记 f(l,r)f(l,r)f(l,r) 为 [l,r][l,r][l,r] 中 > 阅读全文
posted @ 2022-06-12 18:07 蒟蒻orz 阅读(1) 评论(0) 推荐(0) 编辑