Files
pythonProject/24.6.py
Victor Alexandrovich Tsyrenschikov bac304aab2 Project
2025-11-21 00:03:35 +05:00

5 lines
187 B
Python

import re
str1=open('24_6.txt').read().strip()
result=re.split(r'(?=00)0',str1) #Негативный просмотр вперед (Negative Lookahead)
print(max(list(map(len,result))))