
树状数组
树状数组
kelianlee
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
逆序数 51Nod - 1019
#include <iostream> #include <vector> #include <algorithm> #include <map> using namespace std; const int MAXN=5e4+10; int num[MAXN],c[MAXN]; vector<int> vt; map<int...原创 2019-11-12 16:28:36 · 139 阅读 · 0 评论 -
What Goes Up Must Come Down Gym - 102082G
树状数组求逆序数 #include<stdio.h> #include<string.h> #include<iostream> #include <algorithm> using namespace std; typedef long long ll; int a[100005],now[100005],c[100005]; int low...原创 2019-11-12 16:27:33 · 259 阅读 · 0 评论