-->
当前位置:首页 > 题库

PROGRAMMING:Word encryption

Luz5年前 (2021-05-10)题库442
```
Program to read in a number of English words (no more than 80 characters, all uppercase), encryption and output in turn.
The encryption method is the letter replacement method, 26 English letters are divided into two groups, and the letters in each group are substitutes for each other.
Group 1: abcdefghijklm
Group 2 letters: nopqrstuvwxyz
A and N are substitutes for each other, B and o are substitutes for each other, and m and Z are substitutes for each other.
```
###Input format:
Several strings (all uppercase, no other characters) separated by spaces or carriage returns
###Output format:
Encrypted string, a string of a line
###Input example:
```in
INT DOUBLE FOR WHILE
RETURN
```
###Output example:
```out
VAG
QBHOYR
SBE
JUVYR
ERGHEA
```







answer:If there is no answer, please comment