Форум » Обработка символьных строк » 24 5229 » Ответить

24 5229

Ar3turrr: Не сходится ответ, не могу найти ошибку. [pre2]s = open('24-1.txt').readline() letters = 'ABX' count = maxcount = letcount = 0 for i in range(len(s)): if s[ i] in letters: letcount += 1 if letcount == 6: letcount = 1 count = 1 continue count += 1 maxcount = max(maxcount, count) print(maxcount)[/pre2]

Ответов - 1

Aleksey6819: У Вас ошибка, как и в http://egekp.unoforum.pro/?1-23-0-00000146-000-0-0-1680200776



полная версия страницы