|
|||||||||||||||||||
|
SPOJ time: 2012-05-26 13:52:53 |
Simple Rotor SimulatorProblem code: HS08RTR
The primary component of a rotor encryption machine (such as the famous Enigma) is a set of rotors with an array of electrical contacts. In this problem you are about to simulate one rotor implementing the following function: f(a) = ((a) + j) mod 26, where j=1. Attention: You can use any programming language you want, as long as it is Brainf**k. InputYou are given five capitalized Latin letters. OutputOutput letters encrypted by the rotor described above. ExampleInput: KLAZD Output: LMBAE ScoringBy solving this problem you score 10 points.
|
||||||||||||||||||
| |||||||||||||||||||