407049: GYM102697 020 Codebusters

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

020. Codebusterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Encryption has been an essential tool throughout history and the modern world. Essentially, encryption is the practice of encoding messages, for the purposes of securing the message's confidentiality from other parties.

Input

Your Job is to create a basic encryption method, where if we cast characters of a word to an integer, the odds will be swapped with its following even character, where the first positive integer n are the number of cases following it.

ExampleInput
4
ABCDEFG
GAME
RAMBOOK
EHLLO
Output
BADCFEG
AGEM
ARBMOOK
HELLO
Note

(If the word is of an odd length, the last character should be the same)

加入题单

算法标签: