mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-25 21:13:43 +03:00
11 lines
191 B
Python
Vendored
11 lines
191 B
Python
Vendored
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)
|