#include #include #include #include #include #include #include #include #include #include #define LL long long #define LD double using namespace std; setmp; int mi[30]; bool getwei(int s,int w){return (s&mi[w])>0;} int bitcount(int x) { int ans=0; for (int i=0;i<=20;i++) if (getwei(x,i)) ans++; return ans; } void init() { mi[0]=1;for (int i=1;i<=22;i++) mi[i]=mi[i-1]*2; for (int i=2;i<=18;i+=2) for (int j=0;j