This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-11-14 15:33:32 +05:00
parent bac304aab2
commit d36bc632d9

View File

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