Farz0l1x

Untitled

Oct 21st, 2023
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. file = open('24_10724.txt')
  2. A = list(map(str, file.readlines()))
  3. A = ''.join(A)
  4. A = list(A)
  5. Max = 0
  6. B = ''
  7. for i in range(len(A)):
  8.         if A[i] in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E']:
  9.                 B += B.join(A[i])
  10.                 Max = max(Max, len(B))
  11.         else:
  12.                 B = ''
  13. print(Max)
Add Comment
Please, Sign In to add comment