Morse decode by baran

M={' ':32,'--..--':44,'.-.-.-':46,'..--..':63,'---...':58,'-.-.-.':59,'-...-':61,'..--.-':95,'.--.-.':64};for(i=0;i<26;i++)M[['.-','-...','-.-.','-..','.','..-.','--.','....','..','.---','-.-','.-..','--','-.','---','.--.','--.-','.-.','...','-','..-','...-','.--','-..-','-.--','--..'][i]]=97+i;c=[];for(i in (w=readline().replace(/ /g,'/ /').split('/')))c.push(M[w[i]]);print(String.fromCharCode.apply(null, c))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page