{"problem":{"name":"169. SOS","description":{"content":"Morse code, developed in 1837, along with the invention of the telegram, was a revolutionary invention that struck a new frontier in the subject of telecommunications. Through a series of electrical p","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269169"},"statements":[{"statement_type":"Markdown","content":"Morse code, developed in 1837, along with the invention of the telegram, was a revolutionary invention that struck a new frontier in the subject of telecommunications. Through a series of electrical pulses, messages could be sent to far distances through a series of dots and dashes, and at a speed that was unheard of before its invention. Since then, telegrams and Morse code have been essential in the realm of communications, especially in its role in the military, where fighter pilots were required to memorize Morse code until the 1990s.\n\nYour job is to create a translator that will take in messages encode it in morse, and output the result in alphabet form.\n\nYou will receive a message, encoded in morse, whose dashes are represented by _-_, and dots represented by _._ Assume all letters will be uppercase. Each word will be separated via _/_, and each character will be separated by a space.\n\nPrint out the complete translated statement.\n\n## Input\n\nYou will receive a message, encoded in morse, whose dashes are represented by _-_, and dots represented by _._ Assume all letters will be uppercase. Each word will be separated via _/_, and each character will be separated by a space.\n\n## Output\n\nPrint out the complete translated statement.\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ M $ be a string representing a Morse-encoded message, where:  \n- Dots are denoted by `.`  \n- Dashes are denoted by `-`  \n- Characters within a word are separated by a single space ` `  \n- Words are separated by `/`  \n\nLet $ \\mathcal{M} : \\{A, B, \\dots, Z\\} \\to \\{\\text{dot-dash sequences}\\} $ be the standard Morse code mapping for uppercase English letters.  \n\n**Constraints**  \n1. All encoded letters are uppercase.  \n2. Input string $ M $ is well-formed: no leading/trailing spaces, no consecutive spaces or slashes except as separators.  \n\n**Objective**  \nDecode $ M $ into plaintext by:  \n1. Splitting $ M $ by `/` to obtain words.  \n2. For each word, splitting by ` ` to obtain individual Morse characters.  \n3. Mapping each Morse character to its corresponding letter using $ \\mathcal{M}^{-1} $.  \n4. Joining letters into words, and words into a single string separated by spaces.  \n\nOutput the resulting decoded string.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269169","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}