scripts/ege/Проверочная по 0/12.py
2023-05-05 00:45:01 +03:00

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])