dxnge

17

Sep 30th, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. with open('24-j7.txt') as f:
  2.     a = list(f.readline())
  3. s = (''.join(map(lambda x, y: x if int(x) % 2 == int(y) % 2 else x + ' ', a, a[1:]))).split()
  4. print(max(map(len, s)))
Advertisement
Add Comment
Please, Sign In to add comment