• + 0 comments

    My implementation:

    `

    if name == 'main': n = int(input().strip()) binary = bin(n)[2:].split('0') print(len(max(binary)))

    `