题解 | #求最大连续bit数#
求最大连续bit数
http://www.nowcoder.com/practice/4b1658fd8ffb4217bc3b7e85a38cfaf2
# -*-coding:utf-8-*-
while True:
try:
input_m = int(input())
int_b = bin(input_m).split("0b")
int_l = list(int_b[1].split("0"))
print(sorted(int_l)[-1].count("1"))
except:
break