mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-25 21:13:43 +03:00
15 lines
306 B
Python
Vendored
15 lines
306 B
Python
Vendored
s = "46" * 30 + "84" * 30 + "86" * 30
|
|
|
|
|
|
while "46" in s or "84" in s or "86" in s:
|
|
if "46" in s:
|
|
s = s.replace("46", "64", 1)
|
|
if "84" in s:
|
|
s = s.replace("84", "48", 1)
|
|
if "86" in s:
|
|
s = s.replace("86", "68", 1)
|
|
|
|
|
|
print(len(s))
|
|
print(s[24], s[74], s[149])
|