import re#pythonзадача #coбес
def minLength(s: str) -> int:
match = re.search('AB|CD', s)
while match:
s = re.sub(r'AB|CD', '', s)
match = re.search('AB|CD', s)
return len(s)
Post #1365
2.2K
Ответ к предыдущей задаче для новичков.
- 👍 1