TopCoder

User's AC Ratio

100.0% (2/2)

Submission's AC Ratio

80.0% (4/5)

Tags

Description

凱薩密碼

傳說是古老西方神祕半島的老大隱藏軍令的方法。

a -> d, b -> e, c -> f,,,, x -> a, y -> b, z -> c

輸入一個明文,請把他加密後輸出。

Input Format

輸入一行小寫英文字母組成的字串(長度 $ 500$)。

Output Format

輸出一行加密過的字串。

Sample Input 1

aaa

Sample Output 1

ddd

Sample Input 2

abcd

Sample Output 2

defg

Hints

Problem Source

NEOJ Problem 217

Subtasks

No. Testdata Range Constraints Score
1 0 10
2 1 10
3 2 10
4 3 10
5 4 10
6 5 10
7 6 10
8 7 10
9 8 10
10 9 10

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1
1 1000 65536 65536 2
2 1000 65536 65536 3
3 1000 65536 65536 4
4 1000 65536 65536 5
5 1000 65536 65536 6
6 1000 65536 65536 7
7 1000 65536 65536 8
8 1000 65536 65536 9
9 1000 65536 65536 10