This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-11-12 13:44:39 +05:00
parent a0347aff39
commit bac304aab2
3 changed files with 6 additions and 8 deletions

View File

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