From 49dcd3a8ed2f8b2227fe332c14811743960f5e3a Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Fri, 21 Nov 2025 00:23:03 +0500 Subject: [PATCH] 24.7 --- 24.7.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/24.7.py b/24.7.py index 01c5475..77c56a5 100644 --- a/24.7.py +++ b/24.7.py @@ -15,20 +15,4 @@ # matches = re.findall(pattern, data) # # res = max([len(match[0] + match[1]) -# for match in matches]) -# print(res) -from itertools import count - - -f = open('24_7.txt').read() -a=[] -j=0 -count = 0 -for i in range(len(f)-1): - if f[i]+f[i+1]=='CD': - count+=1 - if count>160: - count=1 - a.append(i+1-j) - j=i -print(max(a)) \ No newline at end of file +# for match in matches]) \ No newline at end of file