存个板子~
ll tmp=d; int num_digit=0,cnt1=0,bri[35]; while(tmp){ if(tmp%2){ bri[num_digit++]=1; cnt1++; }else bri[num_digit++]=0; tmp/=2; }
存个板子~
ll tmp=d; int num_digit=0,cnt1=0,bri[35]; while(tmp){ if(tmp%2){ bri[num_digit++]=1; cnt1++; }else bri[num_digit++]=0; tmp/=2; }