摘要: #include<iostream> using namespace std; const int N = 1e6+10; int n; long long cnt=0; int q[N],tmp[N]; void count(int q[],int l,int r) { if(l>=r)retur 阅读全文
posted @ 2022-04-15 10:53 bz-2021 阅读(30) 评论(0) 推荐(0)
摘要: 代码模板 #include<iostream> using namespace std; const int N = 1e6+10; int a[N]; void quicksort(int a[],int l,int r) { if(l>=r) return ; int x = a[l],i=l- 阅读全文
posted @ 2022-04-15 08:41 bz-2021 阅读(22) 评论(0) 推荐(0)
摘要: 代码模板 #include<iostream> using namespace std; const int N = 1e6 + 10; int n; int q[N],tmp[N]; void mergesort(int q[],int l,int r){ if(l>=r)return ; int 阅读全文
posted @ 2022-04-14 22:53 bz-2021 阅读(19) 评论(0) 推荐(0)
摘要: 代码模板: #include<iostream> using namespace std; const int N = 1e6+10; int a[N]; void quicksort(int a[],int l,int r){ if(l>=r)return ; int x=a[l],i=l-1,j 阅读全文
posted @ 2022-04-14 21:43 bz-2021 阅读(49) 评论(0) 推荐(0)