scripts/ege/1/12.py

11 lines
170 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
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"))