#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; bool rcmp(int a, int b) { return a>b; } typedef long long LL; class mypcmp { public: bool operator()(const int& a, const int& b) { return a=19) nj=0; // printf("dfs %d %x, j is %d, nj is %d\n", i, m, j, nj); int k; for (k=0; k=19) nj=0; for (i=0; i<19; i++) { r0=r1=0; xx = mx[i]&m; while(xx) { cm = xx&(-xx); // for (k=0; k