ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1654. Cipher Message

How input is <wwstdaadierfflitzzz>,but output <stierlitz>?
This is wrong,according case 2 of this problem...
Your task is to
"remove from the message all pairs of identical letters" only.
Ok.There are two and two <t> of the word - < stierlitz >.
Ok.There are two i and two t of the word -  stierlitz.
The task is to undo step 3, which involves *repeatedly* inserting letter pairs.   This results in more than just aabbcc...