Given A and B, where A is the scale of a Digital LED Pattern B. Parse pattern B and print the number.
input:
1
_ _ _ _ _ _ _ _ _ _ _ _
_| _| _|| ||_||_ ||_ |_|| | ||_||_||_ ||_|
|_ _||_ |_| | _| ||_| ||_| | | | _| ||_|
output:
2320451640799518
input:
2
__ __
| |
__| __|
| |
|__ __|
output:
23
Rules:
Use STDIN/STDOUT for input/output
I tried to mimic this question as much as possible, but I think code-golf suits this one better.
Shortest code (in bytes) wins