Skip to content

babelfish

bradendubois edited this page Nov 24, 2021 · 10 revisions

Babelfish

ID: babelfish

Difficulty: 2.5

CPU Time: 3 seconds

Memory: 1024 MB

Solution

For this, just take each line (before the blank line) and map the second word in the line to the first word. Then, reading each line after the blank line, if the line is in the mapping, output its result, otherwise "eh".

Clone this wiki locally