#include #include int w[100000],b[100000]; void quick_sort(int left,int right) { int i,j,pivot; i=left; j=right; pivot=w[(i+j)/2]; while (i<=j) { while (w[i]pivot) { j--; } if (i<=j) { int temp; temp=w[i]; w[i]=w[j]; w[j]=temp; temp=b[i]; b[i]=b[j]; b[j]=temp; i++; j--; } } if (left