Advertisement
vadim_sharaf

Untitled

Sep 28th, 2021
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. with open ('24-j2.txt') as f:
  2.      s = f.readline()
  3. d = iter(sorted(s))
  4. def G(c):
  5.      c = c.replace(next(d), ' ').replace(next(d), ' ').replace(next(d), ' ')
  6.      return max(map(len, c.split()))
  7. print (max(map(G(s), s)))
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement