#P5730. 【深基5.例10】显示屏

【深基5.例10】显示屏

Description

On an LCD screen, each Arabic digit can be shown as a 3×53\times5 dot matrix (where X means a lit dot and . means an unlit dot). Now you are given the number of digits (not exceeding 100100) and a string of digits. You need to output the display effect of these digits on the screen. The display style is the same as in the sample output. Note that there is one column of spacing between every two digits.

Input Format

The first line contains a positive integer nn, which is the number of digits.

The second line contains a natural number of length nn.

Output Format

Output five lines to represent the digits on the display screen.

10
0123456789

XXX...X.XXX.XXX.X.X.XXX.XXX.XXX.XXX.XXX
X.X...X...X...X.X.X.X...X.....X.X.X.X.X
X.X...X.XXX.XXX.XXX.XXX.XXX...X.XXX.XXX
X.X...X.X.....X...X...X.X.X...X.X.X...X
XXX...X.XXX.XXX...X.XXX.XXX...X.XXX.XXX

Hint

The testdata guarantees that 1n1001 \leq n \leq 100.

Translated by ChatGPT 5