Digital transmission
Statement
Goal
We want to decode a digital message that was sent over the wire.For example the line '-___---' is '1000111' which is binary for the number '71' that encodes the letter 'G'
Input
Line 1: N = number of lines of the transmission
Next N lines: ASCII character encoded in a binary number where the dash symbol '-' is a one and the underscore '_' is a zero.
Next N lines: ASCII character encoded in a binary number where the dash symbol '-' is a one and the underscore '_' is a zero.
Output
A single line with the decoded message
Constraints
1 ≤ N ≤ 200
5 ≤ bits per line ≤ 8
5 ≤ bits per line ≤ 8
Example
Input
11 -__-___ --__-_- --_--__ --_--__ --_---- -_____ -_-_--- --_---- ---__-_ --_--__ --__-__
Output
Hello World
Game modes
Shortest
Test cases
Test 1 Test
Input
11
-__-___
--__-_-
--_--__
--_--__
--_----
-_____
-_-_---
--_----
---__-_
--_--__
--__-__
Output
Hello World
Validator 1 Validator
Input
11
-__-___
--__-_-
--_--__
--_--__
--_----
-_____
-_-_---
--_----
---__-_
--_--__
--__-__
Output
Hello World
Test 2 Test
Input
44
-__-__-
--_---_
--__--_
--_----
---__-_
--_--_-
--____-
---_-__
--_-__-
--_----
--_---_
-_____
--_-__-
---__--
-_____
---_-__
--_-___
--__-_-
-_____
---__-_
--__-_-
---__--
--_----
--_--__
---_-_-
---_-__
--_-__-
--_----
--_---_
-_____
--_----
--__--_
-_____
---_-_-
--_---_
--___--
--__-_-
---__-_
---_-__
--____-
--_-__-
--_---_
---_-__
----__-
Output
Information is the resolution of uncertainty
Validator 2 Validator
Input
44
-__-__-
--_---_
--__--_
--_----
---__-_
--_--_-
--____-
---_-__
--_-__-
--_----
--_---_
-_____
--_-__-
---__--
-_____
---_-__
--_-___
--__-_-
-_____
---__-_
--__-_-
---__--
--_----
--_--__
---_-_-
---_-__
--_-__-
--_----
--_---_
-_____
--_----
--__--_
-_____
---_-_-
--_---_
--___--
--__-_-
---__-_
---_-__
--____-
--_-__-
--_---_
---_-__
----__-
Output
Information is the resolution of uncertainty
Test 3 Test
Input
110
-_____-
-_____
--___--
--_----
--_--_-
---____
---_-_-
---_-__
--__-_-
---__-_
-_____
---_---
--_----
---_-_-
--_--__
--__-__
-_____
--__-__
--__-_-
---__--
--__-_-
---__-_
---_--_
--__-_-
-_____
---_-__
--_----
-_____
--___-_
--__-_-
-_____
--___--
--____-
--_--__
--_--__
--__-_-
--__-__
-_____
--_-__-
--_---_
---_-__
--__-_-
--_--__
--_--__
--_-__-
--__---
--__-_-
--_---_
---_-__
-_____
--_-__-
--__--_
-_____
--_-__-
---_-__
-_____
--___--
--_----
---_-_-
--_--__
--__-__
-_____
--__-__
--__-_-
--___--
--__-_-
--_-__-
---_--_
--__-_-
-_____
--____-
-_____
--_-___
---_-_-
--_--_-
--____-
--_---_
-_____
--_-__-
--_---_
---_-__
--_----
-_____
--___-_
--__-_-
--_--__
--_-__-
--__-_-
---_--_
--_-__-
--_---_
--__---
-_____
---_-__
--_-___
--____-
---_-__
-_____
--_-__-
---_-__
-_____
---_---
--____-
---__--
-_____
--_-___
---_-_-
--_--_-
--____-
--_---_
Output
A computer would deserve to be called intelligent if it could deceive a human into believing that it was human
Validator 3 Validator
Input
110
-_____-
-_____
--___--
--_----
--_--_-
---____
---_-_-
---_-__
--__-_-
---__-_
-_____
---_---
--_----
---_-_-
--_--__
--__-__
-_____
--__-__
--__-_-
---__--
--__-_-
---__-_
---_--_
--__-_-
-_____
---_-__
--_----
-_____
--___-_
--__-_-
-_____
--___--
--____-
--_--__
--_--__
--__-_-
--__-__
-_____
--_-__-
--_---_
---_-__
--__-_-
--_--__
--_--__
--_-__-
--__---
--__-_-
--_---_
---_-__
-_____
--_-__-
--__--_
-_____
--_-__-
---_-__
-_____
--___--
--_----
---_-_-
--_--__
--__-__
-_____
--__-__
--__-_-
--___--
--__-_-
--_-__-
---_--_
--__-_-
-_____
--____-
-_____
--_-___
---_-_-
--_--_-
--____-
--_---_
-_____
--_-__-
--_---_
---_-__
--_----
-_____
--___-_
--__-_-
--_--__
--_-__-
--__-_-
---_--_
--_-__-
--_---_
--__---
-_____
---_-__
--_-___
--____-
---_-__
-_____
--_-__-
---_-__
-_____
---_---
--____-
---__--
-_____
--_-___
---_-_-
--_--_-
--____-
--_---_
Output
A computer would deserve to be called intelligent if it could deceive a human into believing that it was human
Test 4 Test
Input
71
-__-__
------
-_----_
-_--_-_
-___-_-
-_-_---
-___--
-----_
-----__
--__---
-_--___
-__--_-
-___-_
-___--_
-_-_-_-
--_-__
-___---
-_-__-_
---___-
---_--
-____-
-_---_-
--__-_
-__-_-_
----_-_
-__-_--
--_-__-
--__--
-_____-
-_--_--
-__-_-
----__
--___--
-_-----
---_-_-
---__--
-_-__-
--_____
--_---_
--_--_
-_-_---
-_-___
-_----
--___-
--____
--_--_-
----___
-_-____
---____
-__----
---__-_
-__-__-
--_--__
--__--_
--_-___
------_
-__--_
---_--_
---_---
--_---
-__-___
--_-_--
-______
----_--
--____-
-___-__
-_--__
-__---_
-_-_--
--___-_
-____--
Output
$?^ZEW#>|gXM"FU4GRq;!]2JzKi3A[%<c_us)`n6W(/10mxPpOrIlfh~&vw7Hk@{aD,N+bC
Validator 4 Validator
Input
71
-__-__
------
-_----_
-_--_-_
-___-_-
-_-_---
-___--
-----_
-----__
--__---
-_--___
-__--_-
-___-_
-___--_
-_-_-_-
--_-__
-___---
-_-__-_
---___-
---_--
-____-
-_---_-
--__-_
-__-_-_
----_-_
-__-_--
--_-__-
--__--
-_____-
-_--_--
-__-_-
----__
--___--
-_-----
---_-_-
---__--
-_-__-
--_____
--_---_
--_--_
-_-_---
-_-___
-_----
--___-
--____
--_--_-
----___
-_-____
---____
-__----
---__-_
-__-__-
--_--__
--__--_
--_-___
------_
-__--_
---_--_
---_---
--_---
-__-___
--_-_--
-______
----_--
--____-
-___-__
-_--__
-__---_
-_-_--
--___-_
-____--
Output
$?^ZEW#>|gXM"FU4GRq;!]2JzKi3A[%<c_us)`n6W(/10mxPpOrIlfh~&vw7Hk@{aD,N+bC
Solution language
Solution
Stub generator input