#P5730. 【深基5.例10】显示屏
【深基5.例10】显示屏
Description
On an LCD screen, each Arabic digit can be shown as a dot matrix (where X means a lit dot and . means an unlit dot). Now you are given the number of digits (not exceeding ) 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 , which is the number of digits.
The second line contains a natural number of length .
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 .
Translated by ChatGPT 5
京公网安备 11011102002149号