#include #include #include #include #include #include #include #include using namespace std; #define ll __int64 ll n, m, k; char s[40], t[40]; void go(ll x, char *S){ ll top = 1; while(x){ S[top++] = ('0'+(x&1)); x>>=1; } S[top] = 0; } ll z, o;//n涓0 1涓 ll Zero(ll x){ll ans = 0; while(x){ans += !(x&1);x>>=1;}return ans;} ll One(ll x){ll ans = 0; while(x){ans += (x&1);x>>=1;}return ans;} ll work(char *c){ ll ans = 0, er = 1; for(ll i = strlen(c)-1; i>=0; i--, er<<=1)if(c[i]=='1')ans += er; return ans; } bool ok(ll x){ if(Zero(x)