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.
InputYour 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.
ExampleInput4 ABCDEFG GAME RAMBOOK EHLLOOutput
BADCFEG AGEM ARBMOOK HELLONote
(If the word is of an odd length, the last character should be the same)