Ответ:
n = bin(int(input()))
i = max = 0
for j in n:
if j == "1":
i += 1
if i > max:
max = i
if j == "0":
i = 0
print(max)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
n = bin(int(input()))
i = max = 0
for j in n:
if j == "1":
i += 1
if i > max:
max = i
if j == "0":
i = 0
print(max)