In [267]:
def secret_map():
    number = int(input())
    arr1 = input()
    arr2 = input()
    arr1 = [int(i) for i in arr1[arr1.index('[')+1 : arr1.index(']')].split(",")]
    arr2 = [int(i)for i in arr2[arr2.index('[')+1 : arr2.index(']')].split(",")]
    
    output = []
    for i in range(len(arr1)):
        decoded = bin(arr1[i]|arr2[i])[2:].zfill(number)
        decoded = decoded.replace('1',"#")
        decoded = decoded.replace('0'," ")
        output.append(decoded)
    return output

In [269]:
print(secret_map())


5
	[9, 20, 28, 18, 11]
	[30, 1, 21, 17, 28]
['#####', '# # #', '### #', '#  ##', '#####']

In [268]:
print(secret_map())


6
	[46, 33, 33 ,22, 31, 50]
	[27 ,56, 19, 14, 14, 10]
['######', '###  #', '##  ##', ' #### ', ' #####', '### # ']