wip
Time Limit: 1 seconds
Memory Limit: 1024 MB
Rating: 1100
Problem StatementA 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.
Input1st 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$
OutputA translated version of the string, all letters are capitalised, while numbers and punctuation (such as periods, commas, and spaces) remains the same.
Sample CasesSample Input 0: QTMMJ 2 Sample Output 0: HELLOExplanation
Not available for this problem.
SourcesKL Coding Cup October 2024 > Problem 13
Submit | Back