mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-30 23:13:42 +03:00
15 lines
306 B
Python
15 lines
306 B
Python
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])
|