Miroca
This commit is contained in:
2
24.6.py
2
24.6.py
@@ -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))))
|
||||||
Reference in New Issue
Block a user