This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-11-12 13:44:39 +05:00
parent a0347aff39
commit bac304aab2
3 changed files with 6 additions and 8 deletions

4
f.py
View File

@@ -1,5 +1,5 @@
import re
str1=open('24_1.txt').read()
result=re.findall(r'B*',str1)
print(max(list(map(len,result))))
result=re.findall(r'B+',str1)
print(max(map(len,result)))