题解 | #完全数计算#面向结论编程,噢耶!!!!
完全数计算
http://www.nowcoder.com/practice/7299c12e6abb437c87ad3e712383ff84
a=input()
a=int(a)
list=[6,28,496,8128]
if a>=list[-1]:
print(4)
for i in range(len(list)):
if list[i]>a:
print(i)
break
a=int(a)
list=[6,28,496,8128]
if a>=list[-1]:
print(4)
for i in range(len(list)):
if list[i]>a:
print(i)
break