摘要:
1. 题目大意: 给一个长度为n的的数组a,n是1到1e5,ai是1到1e5,问a的所有排序的序列的逆序对之和,会有重复的数字出现 题目链接:https://ac.nowcoder.com/acm/contest/46597/E typedef long long ll; typedef long 阅读全文
摘要:
https://www.luogu.com.cn/blog/I-love-saber/solution-p1935 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N 阅读全文
摘要:
https://www.luogu.com.cn/blog/CJL/solution-p4313 #include<iostream> #include<cstring> using namespace std; const int N=400020; #define int long long c 阅读全文