- 博客(55)
- 收藏
- 关注
原创 frosh week HDU 树状数组求逆序数
解析看这里一文教你树状数组如何求逆序数https://blog.csdn.net/zlq7777/article/details/122417173ans+=i-getsum(t[i].id);sum += query(reflect[i]) - 1;都行,两种逆序数计数方法选择而已#include<bits/stdc++.h>using namespace std;int n;typedef long long ll;int reflect[1000005],c[100.
2022-01-10 23:54:43
261
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1