#include int a[100000]; int b[100000]; int min(int a,int b){return a>d&1))b[p++]=a[i]; int mid=p; for(i=l;i>d&1)b[p++]=a[i]; for(i=l;i