#include #include #include #include using namespace std; int A[2<<17]; int ans=0; int mid(int l,int r,int k) { int m=l; while(m>k&1))m++; return m; } void solve2(vector >A,vector >B,long K,int k) { if(k==-1)return; vector >zero,one; long v=0; for(int i=0;i=K)solve2(zero,one,K,k-1); else { ans|=1< >LR,long K,int k) { if(k==-1)return; vector >zero,one; long v=0; for(auto[l,r]:LR)if(l>N>>K; for(int i=0;i>A[i]; sort(A,A+N); vector >fst; fst.push_back(make_pair(0,N)); solve(fst,K,29); cout<