You are viewing a single comment's thread. Return to all comments →
using namespace std; long long int cntvalue(long long int n) { long long int u=0; while(n) { if((n&1)==0) u++; n=n>>1; } return 1<>n; cout<
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 →
include
include
using namespace std; long long int cntvalue(long long int n) { long long int u=0; while(n) { if((n&1)==0) u++; n=n>>1; } return 1<>n; cout<