!terces poT
Time limit1sMemory limit256 MB
Reverse every input line except the final END line and print each decoded sentence in order.
- Level
Easy1 of 10
- Topics
- String
- Solved
- No attempts yet
Problem
You pick up a strange note on the street. The note holds a cipher, and you work out that reversing the cipher gives back the original sentence.
Write a program that decodes the ciphers.
Input
Each line holds one cipher. A cipher is at most 500 characters long.
The last line is END. That line marks the end of the input and is not decoded. Only a line equal to END ends the input, so ENDING and end are decoded like any other cipher.
Output
Print the decoded sentence for each cipher, one per line, in input order.