Farz0l1x

Untitled

May 8th, 2023
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. f = open('24_7624.txt').readline()
  2. f = f.replace('X', 'Z').replace('Y', 'Z')
  3. while 'ZZ' in f:
  4. f = f.replace('ZZ', 'Z Z')
  5.  
  6. print(max(map(len, f.split())))
Advertisement
Add Comment
Please, Sign In to add comment