• + 0 comments

    include

    include

    include

    include

    void calculate_the_maximum(int n, int k) { int max_and=0, max_or=0, max_xor=0; int and, or, xor; for (int a=1; a max_and) max_and = and; if(ormax_or) max_or = or; if(xormax_xor) max_xor = xor;

        }
    }    
    printf("%d\n%d\n%d",max_and,max_or,max_xor);
    

    }

    int main() { int n, k;

    scanf("%d %d", &n, &k);
    calculate_the_maximum(n, k);
    
    return 0;
    

    }