AMSCO1 - The AMSCO cipher
Due to A.M.SCOtt in the 19th century, it's an incomplete columnar transposition cipher
with alternating single letters and digraphs. The first entry must be a digraph.
In both even and odd periods the first column and the first row always alternate:
N lines (N<1000)
Each line of the input contains the numeric key (permutation order of the columns)
and a plaintext. Plaintext letters are in [A-Z] only with no punctuation.
The keylength max is 9 and the length of the plaintext is limited to 250.
The last line ends with EOF.
Output consist of exactly N lines of ciphertexts with letters in [A-Z] with no spaces.
41325 INCOMPLETECOLUMNARWITHALTERNATINGSINGLELETTERSANDDIGRAPHS Output:
Problem statement is wrong - my solution got AC only when I changed it to ALWAYS start with a digraph when number of columns is even. This is mindboggling considering legrand himself actually insists it is otherwise.
Must For Beginners.......WA due to incorrect eof
Nice problem :-) enjoyed it!
Easy One :)
easy one...'\n'cost me 1 WA
AC :)Last edit: 2014-12-08 11:00:20
very nice implementation problem:)
don't know why i am getting WA...