Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

MORSE_CD - Morse code

Translate given text into the Morse code.


There are indefinite number of lines. In each of them there are numbers '0'-'9', letters 'A'-'Z' and spaces.


For each character print it in the Morse code.


-.. --- -.-- --- ..- .-. -... . ... -
.---- .--. .-.. ..- ... .---- . --.- ..- .- .-.. ... ..---

Added by:Piotr Kąkol
Time limit:3.937s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: SCM qobi

hide comments
2016-04-14 19:18:08 Dominique VAILLANT
@Piotr I have a problem with my submission #16742216 : displayed score = 0 (instead of 150).
Re-submitting was ok but didn't update the statistics because 0 is 'better' than 150.
2013-11-04 21:24:55 Hallvard Norheim Bø
Piotr: yes, its the same exception that I get locally. The question is why it actually worked on SPOJ in the first place...
2013-10-30 01:02:10 Piotr KÄ…kol
The cause of NZEC is "SyntaxError: EOL while scanning string literal".
2013-10-28 17:31:28 Hallvard Norheim Bø
I also had to change '\r' to '\\r' in my Python 3 solutions,
so something else must be the cause for it.
2013-10-28 01:51:18 Piotr KÄ…kol
I've increased the TL and rejudged your submissions. Weird, though, as I've rejudged all submissions after Python upgrade so this shouldn't happen.
2013-10-27 23:43:14 Hallvard Norheim Bø
My top Python 2 submissions now give NZEC if I try to
resubmit them. Has there been changes to the testcases or
the interpreter version?

I also get TLE for one of them. Probably because 2.7 is slower than 2.5.

edit: Looks like character escapes inside an exec'd string
are handled differently in 2.7. Had to change '\r' to '\\r'
to make it work again.

Last edit: 2013-10-28 00:09:16
2011-01-23 16:18:38 Piotr KÄ…kol
88 chars.
2011-01-22 12:33:44 Hallvard Norheim Bø
How many characters (including whitespace) can there be in a line?

Last edit: 2011-01-22 12:35:08
© All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.