DWITE Online Computer Programming Contest, April 2010, Problem 1
ROT13 as in "rotate by Z
to A
. Since applying the algorithm twice would advance each letter by
The input will contain 5 lines, strings
The output will contain 5 lines — corresponding strings that were run through ROT13 once.
Note: The character rotation should apply only to alphabetic characters. Spaces, digits, and punctuation should stay as is.
Sample Input
Copy
EBG13 FNZCYR.
ROT13 SAMPLE.
Sample Output
Copy
ROT13 SAMPLE.
EBG13 FNZCYR.
Problem Resource: DWITE
Comments