From d36bc632d92b8630625ae99dfd0dfa4036e989ae Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Fri, 14 Nov 2025 15:33:32 +0500 Subject: [PATCH] Miroca --- 24.6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/24.6.py b/24.6.py index bb45282..0d28f73 100644 --- a/24.6.py +++ b/24.6.py @@ -1,5 +1,5 @@ import re 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)))) \ No newline at end of file