Easy Encryption
Time limit1sMemory limit128 MB
Each letter becomes its two-digit code and each digit gains a # prefix while other characters stay unchanged.
- Level
Easy2 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
You invented your own way to encrypt a message before sending it to a friend. The rule is simple. Each letter turns into a two digit number, like this.
a = 01, b = 02, c = 03, ..., y = 25, z = 26
A = 27, B = 28, C = 29, ..., Y = 51, Z = 52
Every digit character (0-9) in the original message gets a # in front of it. Every other character stays exactly as it is.
Input
The input is one line holding the message, a string shorter than 128 characters.
Output
Print the encrypted message.