You are viewing a single comment's thread. Return to all comments →
n = int(input().strip()) bin_str = bin(n).__str__()[2:] print(len(max(re.findall(r"(1{1,})", bin_str))))
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 →