06. Replace Repeating Chars - Text Processing Exercises
Здравейте, колеги може ли малко помощ, 80/100 проблема е в първия вход.
6.Replace Repeating Chars
Write a program that reads a string from the console and replaces any sequence of the same letters with a single corresponding letter.
Examples
Input |
Output |
aaaaabbbbbcdddeeeedssaa |
abcdedsa |
qqqwerqwecccwd |
qwerqwecwd |