#C9387. Caesar Cipher Encryption
Caesar Cipher Encryption
Caesar Cipher Encryption
This problem requires you to implement the Caesar Cipher encryption algorithm. Given a shift value and a string consisting of uppercase English letters, you are to shift every letter in the string by the specified amount. The encryption formula in LaTeX is: $$E(x) = ((x - \text{A} + \text{shift}) \bmod 26) + \text{A}$$ where \(x\) is the ASCII code of the letter and \(\text{A}\) is the ASCII code of 'A'. The problem involves processing multiple test cases.
inputFormat
The first line of the input contains a single integer \(T\) representing the number of test cases. Each of the following \(T\) lines contains an integer shift and a string text (composed only of uppercase letters) separated by a space.
outputFormat
For each test case, output the resulting encrypted string on a new line.
## sample2
3 HELLO
7 WORLD
KHOOR
DVYSK
</p>