Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=70085
- s = open("24.txt").read()
- s = s.replace('CD', 'C D').split()
- maxi = 0
- for i in range(len(s)):
- r = ''.join(s[i:i + 141])
- maxi = max(maxi, len(r))
- print(maxi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement