You are viewing a single comment's thread. Return to all comments →
void calculate_the_maximum(int n, int k) { //Write your code here. int i,j,a,b,or_val=0,and_val=0,xor_val=0,max_and_val =0,max_or_val=0,max_xor_val=0; for(i=1;i max_and_val) && (and_val max_or_val) && (or_val max_xor_val) && (xor_val
int main() { int n, k;
scanf("%d %d", &n, &k); calculate_the_maximum(n, k); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Bitwise Operators
You are viewing a single comment's thread. Return to all comments →
void calculate_the_maximum(int n, int k) { //Write your code here. int i,j,a,b,or_val=0,and_val=0,xor_val=0,max_and_val =0,max_or_val=0,max_xor_val=0; for(i=1;i max_and_val) && (and_val max_or_val) && (or_val max_xor_val) && (xor_val
int main() { int n, k;
}