Without repetitions 3
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
You are given a string composed of English letters, punctuation marks, and spaces. Your task is to eliminate any consecutive repeated characters, replacing them with a single instance of that character.
Input
A single string containing English letters, punctuation marks, and spaces.
Output
The processed string with consecutive duplicate characters reduced to one.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 63%