Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input()
- count, max_count = 0, 0
- for letter in s:
- if letter == 'А' or letter == 'а':
- count+=1
- if count>max_count:
- max_count=count
- elif letter=='Б' or letter == 'б':
- count=0
- print(max_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement