Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=9365
- s = 68 * '8'
- while ('222' in s) or ('888' in s):
- if '222' in s:
- s = s.replace('222', '8', 1)
- else:
- s = s.replace('888', '2', 1)
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement