mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2025-01-22 22:54:08 +03:00
14 lines
261 B
Python
14 lines
261 B
Python
def f(n):
|
|
bin_n = bin(n)[2:]
|
|
if bin_n.count("1") % 2:
|
|
bin_n = "11" + bin_n[2:] + "1"
|
|
else:
|
|
bin_n = "10" + bin_n[2:] + "0"
|
|
return int(bin_n, 2)
|
|
|
|
|
|
for i in range(200):
|
|
if f(i) >= 16:
|
|
print(i)
|
|
break
|