Farz0l1x

Untitled

Mar 5th, 2024
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. file = open('3.txt')
  2. A = file.readline()
  3. A = A.replace('4', 'a')
  4. A = A.replace('3', 'e')
  5. A = A.replace('yandex', '*')
  6. s = '*'
  7. while s in A:
  8.     s += '*'
  9. s = s[1:]
  10. if s in A:
  11.     print(len(s) * 6)
  12. if s + 'y' in A:
  13.     print(len(s) * 6 + 1)
Advertisement
Add Comment
Please, Sign In to add comment