Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open ('24-j2.txt') as f:
- s = f.readline()
- d = iter(sorted(s))
- def G(c):
- c = c.replace(next(d), ' ').replace(next(d), ' ').replace(next(d), ' ')
- return max(map(len, c.split()))
- print (max(map(G(s), s)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement