This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-11-11 15:01:17 +05:00
parent 65aab6c3fc
commit 3c518e9be5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
import re
str1=open('24_5.txt').read()
pattern = r"^(?!.*PP).*$"
result=re.findall(r'.*^(P)(\1).*$',str1)
result=re.split(r'^(?!.*PP).*',str1)
# print(max(list(map(len,result))))

1
24_3.txt Normal file

File diff suppressed because one or more lines are too long