TeslaOA #1
Encrypt
Estimated EasyJudge-ready
Topics (AI-labelled)Strings
Shift each uppercase letter 4 positions to the right in the English alphabet, cyclically, so that A follows Z, keeping the original order.
Input
One line containing a string of length 1 to 100 consisting only of A to Z.
Output
Output the encrypted string.
Example 1
Input:
PINEAPPLE
Output:
TMRIETTPI
Example 2
Input:
WXYZ
Output:
ABCD
Example 3
Input:
A
Output:
E
Example notes
PINEAPPLE becomes TMRIETTPI; WXYZ becomes ABCD letter by letter; A becomes E.
Editorial
Loading solution…