#include typedef unsigned long long LL; #define max(x,y) ((x)>(y)?(x):(y)) LL query(LL a,LL b,LL c,LL d,LL k){ if(!k)return max(max(a^c,b^c),max(a^d,b^d)); if(k!=63&&a==0&&b+1==(1LL<<(k+1)))return (1LL<<(k+1))-1; if(k!=63&&c==0&&d+1==(1LL<<(k+1)))return (1LL<<(k+1))-1; LL ba=a&(1LL<