|
|||
Cryptography for beginners
At the Faculty of Informatics we think it is extremely important to protect our students' data, thus we created a couple cryptographic techniques to achieve state of the art encryption. However we have no idea if our newest algorithm is sufficiently secure, thus - as an aspiring hacker - it is your job to test our system and try to break our code.
InputThe input has two lines: the first line is a subset of the "small" and "capital" letters of the english alphabet separated by a single space character. The number of letters is at most 10. The numbering of the letters starts at the leftmost character with 0 and increases by 1 with each new letter. So the leftmost letter has a value of 0, its neighbour is 1, etc. The second line is a non-negative integer, which represents the encoded message. OutputThe output is the decoded text without any separators between the letters. Restrictions
Example |
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |