utils.py
def bits_to_number(bits):
    """convert the binary representation to the original positive number"""
    res = 0
    for x in bits:
        res = res * 2 + x
    return res
convert the binary representation to the original positive number
convert the binary representation to the original positive number
convert the binary representation to the original positive number
def bits_to_number(bits):
    res = 0
    for x in bits:
        res = res * 2 + x
    return res
def bits_to_number ( bits ) : res = 0 for x in bits : res = res * 2 + x return res
convert the binary representation to the original positive number
convert the binary representation to the original positive number
"""convert the binary representation to the original positive number"""
bits