-->
当前位置:首页 > 题库

PROGRAMMING:monitor

Luz5年前 (2021-05-10)题库452
###Task description
```
One of your friends bought a computer. He only used a calculator before, because the number displayed on the computer monitor is different from that on the calculator, so when he uses the computer, he will be more depressed. To help him, you decided to write a program to display the numbers on the computer as if they were on a calculator.
```
###Input format:
```
The input consists of several lines, each of which represents a number to be displayed. Each line has two integers s and n (1 < = s < = 10, 0 < = n < = 9999999), where n is the number to be displayed and S is the size of the number to be displayed.
If two zeros are included in a line of input, the input ends. This line doesn't need to be dealt with.
```
###Output format:
```
The display mode is: s' - 'represents a horizontal line segment, s' |' represents a vertical line segment. In this case, each number needs to occupy S + 2 column and 2S + 3 row.
In addition, output a blank column between two numbers.
After each number is output, a blank line is output.
In order to test the output, an additional '*' is output after each line of the digital part.
Note: all blank areas in the output should be filled with spaces.
```
###Input example:
```in
2 12345
3 67890
0 0
```
###Output example:
```out
-- -- -- *
| | | | | | *
| | | | | | *
-- -- -- -- *
| | | | |*
| | | | |*
-- -- -- *
--- --- --- --- --- *
| | | | | | | |*
| | | | | | | |*
| | | | | | | |*
--- --- --- *
| | | | | | | |*
| | | | | | | |*
| | | | | | | |*
--- --- --- --- *
```
###Tips
The number is 0, or 1, or 2... Or 9. A number consists of one or more numbers.
###Title Source
Selected from openjudge website, online address: http://sdau.openjudge.cn/c/082/







answer:If there is no answer, please comment