75. Alien Decryptor

Time Limit: 1 seconds

Memory Limit: 1024 MB

Rating: 1100

Problem Statement

A translator for an alien language exists, such that two versions of the alphabet, one normal and the other reversed, lays against each other. Then, based on an integer input $n$, the reversed alphabet is displaced to the left by $n$ digits. Ignore capitalisation, numbers, and punctuation. Write a program to translate from any alien language to english.

Input

1st input: A single string. 2nd input: A single integer. String only uses the english alphabet, numbers, and punctuation as indicated with ASCII. $-10^9 ≤ n ≤ 10^9$

Output

A translated version of the string, all letters are capitalised, while numbers and punctuation (such as periods, commas, and spaces) remains the same.

Sample Cases
Sample Input 0:
QTMMJ
2

Sample Output 0:
HELLO
Explanation

Not available for this problem.

Sources

KL Coding Cup October 2024 > Problem 13

Submit | Back