摘要: //P1908 逆序对 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int mxn=5e5+5; int a[mxn],c[mxn],b[mxn],f[mxn]; int n; inline int lowbit(int x){ return x&-x; } inline ll get(int x 阅读全文
posted @ 2019-10-29 18:52 DUO_JIaMInG 阅读(132) 评论(0) 推荐(0) 编辑
摘要: //P1966 火柴排队 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int mod=99999997; const int mxn=1e6+5; int n; int /*a1[mxn],a2[mxn],d1[mxn],d2[mxn],*/c[mxn],r[mxn]; struct ss{ in 阅读全文
posted @ 2019-10-29 18:51 DUO_JIaMInG 阅读(148) 评论(0) 推荐(0) 编辑