Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 462
2024-09-26
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
s = input()+'#' l = 0 for i in range(len(s)): if i > 0 and s[i] != s[i - 1]: print(l, s[i - 1], sep='', end='') l = 1 else: l += 1