{"raw_statement":[{"iden":"statement","content":"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. \n\nYour 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.\n\n(If the word is of an odd length, the last character should be the same)\n\n"},{"iden":"input","content":"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."},{"iden":"note","content":"(If the word is of an odd length, the last character should be the same)"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ n \\in \\mathbb{Z} $ be the number of test cases.  \nFor each test case $ k \\in \\{1, \\dots, n\\} $, let $ w_k = (c_{k,1}, c_{k,2}, \\dots, c_{k,\\ell_k}) $ be a string of length $ \\ell_k $, where each $ c_{k,i} $ is a character.  \nLet $ a_{k,i} \\in \\mathbb{Z} $ denote the integer value (e.g., ASCII) of character $ c_{k,i} $.\n\n**Constraints**  \n1. $ 1 \\leq n \\leq \\text{some bound (unspecified)} $  \n2. For each $ k $, $ \\ell_k \\geq 1 $, and $ a_{k,i} $ is the integer representation of $ c_{k,i} $.\n\n**Objective**  \nFor each string $ w_k $, produce an encrypted string $ w_k' = (c_{k,1}', c_{k,2}', \\dots, c_{k,\\ell_k}') $, where:  \n$$\na_{k,i}' =\n\\begin{cases}\na_{k,i+1} & \\text{if } i \\text{ is odd and } i < \\ell_k, \\\\\na_{k,i-1} & \\text{if } i \\text{ is even}, \\\\\na_{k,i} & \\text{if } i = \\ell_k \\text{ and } \\ell_k \\text{ is odd}.\n\\end{cases}\n$$  \nThen, $ c_{k,i}' $ is the character corresponding to $ a_{k,i}' $.","simple_statement":null,"has_page_source":false}