解密文本(编程挑战)

题目来自:http://codeeval.com/open_challenges/61/

Description:

For this challenge you are given an encrypted message and a key. You have to determine the encryption and encoding technique and then print out the corresponding plaintext message. You can assume that the plaintext corresponding to this message, and all messages you must handle, will be comprised of only the characters A-Z and spaces; no digits or punctuation.

有一个加密的消息和Key. 你要能够破解加密信息的编码技术,然后印出对应的明文消息。消息中没有数字和标点,只有字母。

Input sample:

There is no input for this program. The encrypted message and key is:

message: "012222 1114142503 0313012513 03141418192102 0113 2419182119021713 06131715070119",
keyed_alphabet: "BHISOECRTMGWYVALUZDNFJKPQX"

 

Output sample:

Print out the plaintext message. (in CAPS)

Submit your solution in a file (some file name).(py| c| cpp| rb| pl| php| tcl| clj| js| scala| cs| m) | decryption.java|decryption.scala or use the online editor.

你可能感兴趣的:(编程)