#P1914. 小书童——凯撒密码
小书童——凯撒密码
Description
Although he forgot the password, he still remembers that it is composed of a string. The password is formed by shifting each letter in the original string (consisting of at most 50 lowercase letters) forward by positions. The letter z is followed by a, wrapping around. Now that he has the original string before shifting and the value of , please compute the password.
Input Format
The first line: . The second line: a string of letters before shifting.
Output Format
One line, which is this newbie's password.
1
qwe
rxf
Hint
The string length is , and .
Translated by ChatGPT 5
京公网安备 11011102002149号