Editorial for DMOPC '14 Contest 4 P1 - New Key


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

By Eduard Ionescu

The intended solution was to have a string 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ. For each character of the encrypted input, find its index in the string above, add 9 to it, and add the decrypted character to the output string.

\mathcal{O}(L)


Comments

There are no comments at the moment.