Submit | All submissions | Best solutions | Back to list |
MB2 - Reverse text |
Your task is to write a program in Brainfuck which will read a line of text and print it in reverse order.
Input
First and the only line of input contains text which will not be longer than 200 characters. At the end of an input there is new line character (ASCII: 10).
Output
Print all characters of the input in reverse order.
Score
Score equals to size (in bytes) of source code of your program. The fewer points you score, the better.
Example
Input: Reverse this line! Output: !enil siht esreveR
Added by: | Maciej Boniecki |
Date: | 2010-09-08 |
Time limit: | 1s |
Source limit: | 100B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF |
hide comments
|
|||||
2010-11-30 07:53:33 :D
EOF is right after the new line. Newline CAN be reversed (written at the start of line). |
|||||
2010-10-23 17:31:15 Priyank
Note : On SPOJ -1 is returned on EOF. |