Problem:
Bit Operation II Given two non-negative decimal integers $a$ and $b$, calculate their AND (logical conjunction), OR (logical disjunction) and XOR (exclusive disjunction) and print them in binary representation of 32 bits. Input The input is given in the following format. $a \; b$ Output Print results of AND, OR and  XOR in a line respectively. Constraints  $0 \leq a, b \leq 2^{32} - 1$  Sample Input 1 8 10 Sample Output 1 00000000000000000000000000001000
00000000000000000000000000001010
00000000000000000000000000000010

Solution (Python):
def out(n):
    mask = 2**32 -1
    print(format(n&mask,"032b"))


a,b = map(int,input().split())
out(a&b)
out(a|b)
out(a^b)

Solution (Python):
a, b = map(int, input().split())
print(f'{a & b:032b}')
print(f'{a | b:032b}')
print(f'{a ^ b:032b}')

Solution (Python):
a,b = map(int,input().split())
MASK = (1 << 32)-1
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
a, b = map(int, input().split())
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
n,m=map(int,input().split())

print("{:032b}".format(n&m))
print("{:032b}".format(n|m))
print("{:032b}".format(n^m))

Solution (Python):
def main():
    bm = 0xffffffff
    a,b = map(int, input().split())
    
    an = (a & b) & bm
    o  = (a | b) & bm
    xo = (a ^ b) & bm

    print(format(an, "032b"))
    print(format(o,  "032b"))
    print(format(xo, "032b"))

main()

Solution (Python):
a,b = map(int,input().split())
print("{:032b}".format(a&b))
print("{:032b}".format(a|b))
print("{:032b}".format(a^b))

Solution (Python):
a,b=map(int,input().split())
print(format(a&b,'032b'))
print(format(a|b,'032b'))
print(format(a^b,'032b'))

Solution (Python):
a, b = [int(x) for x in input().split()]

print( format( a&b, "032b") )
print( format( a|b, "032b") )
print( format( a^b, "032b") )

Solution (Python):
a,b = (int(x) for x in input().split())
MAX = (1 << 32) - 1
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
if __name__ == "__main__":
    a, b = map(lambda x: int(x), input().split())
    mask = (1 << 32) - 1
    print(f"{(a & b) & mask:032b}")
    print(f"{(a | b) & mask:032b}")
    print(f"{(a ^ b) & mask:032b}")

Solution (Python):

a,b = map(int, input().split( ))


print("{:032b}".format(a&b))
print("{:032b}".format(a|b))
print("{:032b}".format(a^b))

Solution (Python):
a, b = map(int, input().split())
MASK = (1 << 32) - 1
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
a,b=map(int,input().split())
print(f'{a&b:032b}\n{a|b:032b}\n{a^b:032b}')

Solution (Python):
a, b = map(int, input().split())
MASK = (1 << 32) - 1
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
a, b = map(int, input().split())

print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
a, b = map(int, input().split())
print('{:032b}'.format(a & b))
print('{:032b}'.format(a | b))
print('{:032b}'.format(a ^ b))

Solution (Python):
a, b = map(int, input().split())
MASK = (1 << 32) - 1

print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):
a,b=map(int,input().split())

c=a&b&0b11111111111111111111111111111111
d=(a|b)&0b11111111111111111111111111111111
e=(a^b)&0b11111111111111111111111111111111
print(format(c,'032b'))
print(format(d,'032b'))
print(format(e,'032b'))

Solution (Python):
a, b = (int(x) for x in input().split())

print('{0:032b}'.format(a & b))
print('{0:032b}'.format(a | b))
print('{0:032b}'.format(a ^ b))

Solution (Python):
a,b = map(int,input().split())
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{0:032b}".format(a ^ b))

Solution (Python):
a, b = map(int, input().split())

print(f'{a & b:032b}')
print(f'{a | b:032b}')
print(f'{a ^ b:032b}')

Solution (Python):
x, y = map(int, input().split())

bin_x = format(x & y, '032b')
bin_x1 = format(x | y, '032b')
bin_x2 = format(x ^ y, '032b')


print(bin_x)
print(bin_x1)
print(bin_x2)

Solution (Python):
a, b = map(int, input().split())
MASK = (1 << 32) - 1
print("{:032b}".format(a & b))
print("{:032b}".format(a | b))
print("{:032b}".format(a ^ b))

Solution (Python):




def run():
    a, b = [int(i) for i in input().split()]
    fmt = "{:032b}"
    mask = ~(1 << 32)

    print(fmt.format((a & b) & mask))
    print(fmt.format((a | b) & mask))
    print(fmt.format((a ^ b) & mask))


if __name__ == '__main__':
    run()

Solution (Python):
a, b = map(int, input().split())
print(bin(a & b)[2:].zfill(32))
print(bin(a | b)[2:].zfill(32))
print(bin(a ^ b)[2:].zfill(32))