#ABC146B. ROT N
ROT N
题目描述
We have a string consisting of uppercase English letters. Additionally, an integer will be given.
Shift each character of by in alphabetical order (see below), and print the resulting string.
We assume that A follows Z. For example, shifting A by  results in C (A  B  C), and shifting Y by  results in B (Y  Z  A  B).
我们有一个由大写英文字母组成的字符串 。此外,还将给出一个整数 。
将 中的每个字符按字母顺序移位 (见下文),并打印得到的字符串。
我们假设
A在Z之后。例如,将A按 移位后得到C(ABC),将Y按 移位后得到B(YZAB)。
输入格式
输入内容按以下格式标准输入:
输出格式
按字母顺序打印将 的每个字符移动 后得到的字符串。
样例 #1
样例输入 #1
2
ABCXYZ
样例输出 #1
CDEZAB
样例 #2
样例输入 #2
0
ABCXYZ
样例输出 #2
ABCXYZ
样例 #3
样例输入 #3
13
ABCDEFGHIJKLMNOPQRSTUVWXYZ
样例输出 #3
NOPQRSTUVWXYZABCDEFGHIJKLM
说明
数据规模与约定
- 由英文大写字母组成。
 
样例 解释
注意 A 在 Z 之后。