You are viewing a single comment's thread. Return to all comments →
def func(num): return num[2:] n = int(input().strip()) a = max(func(bin(n)).split('0')).count('1') print(a)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →