You are viewing a single comment's thread. Return to all comments →
int main(){ unsigned long long int n,count=0,x; cin>>n; while(n) { x=n&1; if(x==0) count++; n>>=1; } cout<<pow(2,count); return 0; }
Whats the problem with this code then. It fails in the above case
Seems like cookies are disabled on this browser, please enable them to open this website
Sum vs XOR
You are viewing a single comment's thread. Return to all comments →
Whats the problem with this code then. It fails in the above case