【例68.2】 简单密码
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Julius Caesar once used a very simple cipher. For each character in the plaintext, it was replaced by the character 5 positions later in the alphabet to create the ciphertext. For example, the character '' was replaced by ''. Below is the correspondence between ciphertext and plaintext characters.
Ciphertext: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Plaintext: V W X Y Z A B C D E F G H I J K L M N O P Q R S T U
Your task is to decrypt the given ciphertext to obtain the plaintext.
Note that all letters in the ciphertext are uppercase. The ciphertext may also contain non-letter characters (including spaces), which should not be decoded.
Input Format
One line containing the ciphertext. The ciphertext is not empty and contains no more than characters.
Output Format
Output one line containing the corresponding plaintext.
Sample
NS BFW, JAJSYX TK NRUTWYFSHJ FWJ YMJ WJXZQY TK YWNANFQ HFZXJXIN WAR, EVENTS OF IMPORTANCE ARE THE RESULT OF TRIVIAL CAUSES
20251206 B班作业(9 & 10)
- Status
- Done
- Problem
- 7
- Open Since
- 2025-12-7 0:00
- Deadline
- 2025-12-14 23:59
- Extension
- 24 hour(s)