mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-24 12:33:45 +03:00
11 lines
170 B
Python
11 lines
170 B
Python
s = "1" + "0" * 55
|
|
|
|
while "1" in s:
|
|
if "10" in s:
|
|
s = s.replace("10", "001", 1)
|
|
else:
|
|
s = s.replace("1", "00", 1)
|
|
|
|
|
|
print(s.count("0"))
|