Zombie apocalypse season I part 2

Logic Level 3

You are hiding in that tank.Suddenly you heard something on radio.It's said that the British army are control the safe zone in London.But the name of safe zone is encrypted by a code.

The code that the voice said is:". _ _ . _ _ _ . . . . _ . . . _ . _ _ Can you find that palace in London?

A hospital A Stadium A tower A house A supermarket A building

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Rudraksh Shukla
Feb 7, 2016

Morse code! The sequence is as ".--. - - -... . -.. . -. - -" which simplifies to wembley. Its the Wembley stadium.

Yes.You had just found a safe zone in London

Son Nguyen - 5 years, 4 months ago

MORSE CODE DICT = { 'A':'.-', 'B':'-...', 'C':'-.-.', 'D':'-..', 'E':'.', 'F':'..-.', 'G':'--.', 'H':'....', 'I':'..', 'J':'.---', 'K':'-.-', 'L':'.-..', 'M':'--', 'N':'-.', 'O':'---', 'P':'.--.', 'Q':'--.-', 'R':'.-.', 'S':'...', 'T':'-', 'U':'..-', 'V':'...-', 'W':'.--', 'X':'-..-', 'Y':'-.--', 'Z':'--..', '1':'.----', '2':'..---', '3':'...--', '4':'....-', '5':'.....', '6':'-....', '7':'--...', '8':'---..', '9':'----.', '0':'-----', ', ':'--..--', '.':'.-.-.-', '?':'..--..', '/':'-..-.', '-':'-....-', '(':'-.--.', ')':'-.--.-'}

def encrypt(message): cipher = '' for letter in message: if letter != ' ': cipher += MORSE CODE DICT[letter] + ' ' else: cipher += ' ' return cipher

def decrypt(message): message += ' ' decipher = '' citext = '' for letter in message: if letter != ' ': i = 0 citext += letter else: i += 1 if i == 2 : decipher += ' ' else: decipher += list(MORSE CODE DICT.keys())[list(MORSE CODE DICT.values()).index(citext)] citext = ''

return decipher

print(encrypt('-.-.- .-.-.- -....- .-.-.- .-.-.- .-.-.- -....- .-.-.- -....- -....- ')) print(decrypt('.--. - - -... . -.. . -. - -'))

Elijah Frank - 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...