|
|||
message
We got an encrypted message, that we want to decrypt of course. We learned the way of the encryption:
take the string
S T
"abc" ""
"bc" "a"
"c" "ba"
"" "cab"
We consider the final T as the encrypted S.
According to the sender we do not need a separate method to decrypt the message. Your task is to
find and implement the method of decryption.
Input SpecificationT
A single line with an encrypted message.
The message consists of letters from the english ABC and its length is at most Output SpecificationS The decrypted message. Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
|
|||
| University of Debrecen; Faculty of Informatics; v. 09/30/2024 |