mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-28 14:23:43 +03:00
11 lines
191 B
Python
11 lines
191 B
Python
s = "7" * 512
|
|
c = 0
|
|
while "7777" in s or "1111" in s:
|
|
c += 1
|
|
if "7777" in s:
|
|
s = s.replace("7777", "1", 1)
|
|
else:
|
|
s = s.replace("1111", "7", 1)
|
|
|
|
print(c)
|