模板内容: C++
void quick(int q[],int l,int r){
if(l>=r) return;
int x = q[(l+r+1)>>1],i = l-1,j = r+1;
while(i<j){
do i++;while(q[i]<x);
do j--;while(q[j]>x);
if(i<j) swap(q[i],q[j]);
}
quick(q,l,i-1);
quick(q,i,r);
}
标签:ix,return,int,void,快排,2022,模板,Acwing
From: https://blog.51cto.com/CANGYE0504/5764535