From f28ef6205bd202b9a4cf67569e6d207287e5f574 Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Tue, 11 Nov 2025 17:03:33 +0500 Subject: [PATCH] Project --- 24.5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/24.5.py b/24.5.py index 0e67c75..9636f22 100644 --- a/24.5.py +++ b/24.5.py @@ -1,5 +1,5 @@ import re str1=open('24_5.txt').read() -result=re.split(r'^(?!.*PP).*',str1) -# print(max(list(map(len,result)))) \ No newline at end of file +result=re.split(r'(?<=P)P',str1) +print(max(list(map(len,result)))) \ No newline at end of file