#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); #define RD(v) int v=0;{int _c;while(_c=*rp++-48,_c>=0)v=v*10+_c;} int a[2000]; int sort1b(b,l,r){ int ml=l; int mr=r; while(1){ while(ml=0&&(m=sort1b(1<=0) f(p-1,0,m,m,n); printf("%d",maxv); }