Sometimes, older is better X47025


Statement
 

pdf   zip

html

Input The first line of the input data will contain two integers separated by a space; the number of lines of encrypted text to be processed and the value of K, that is, the positions that the alphabet has to be displaced to encrypt/decrypt the message.
The following lines will contain encrypted text, consisting of capital Latin letters A ... Z. Each line will be terminated with a dot which should not be decoded.

Output Your answer should contain the decrypted message (in a single line, no line splitting is needed) and the final dot in the encrypted message.

Public test cases
  • Input

    1 3
    YHQL YLGL YLFL.
    

    Output

    VENI VIDI VICI.
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++ Python