• 沒有找到結果。

Output Output the numbers given in the input le in an LC-display-style using s\-&#34

N/A
N/A
Protected

Academic year: 2021

Share "Output Output the numbers given in the input le in an LC-display-style using s\-&#34"

Copied!
1
0
0

加載中.... (立即查看全文)

全文

(1)

ACM Contest Problems Archive University of Valladolid (SPAIN)

706 LC-Display

A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, looking at his new computer, he is a bit disappointed, because he liked the LC-display of his calculator so much. So you decide to write a program that displays numbers in an LC-display-like style on his computer.

Input

The input le contains several lines, one for each number to be displayed. Each line contains two integers s;n (1s10;0n99999999), where nis the number to be displayed and sis the size in which it shall be displayed.

The input le will be terminated by a line containing two zeros. This line should not be processed.

Output

Output the numbers given in the input le in an LC-display-style using s\-" signs for the horizontal segments and s \|" signs for the vertical ones. Each digit occupies exactly s+ 2 columns and 2s+ 3 rows. (Be sure to ll all the white space occupied by the digits with blanks, also for the last digit.) There has to be exactly one column of blanks between two digits.

Output a blank line after each number. (You will nd a sample of each digit in the sample output.)

Sample Input

2 12345

3 67890

0 0

Sample Output

-- -- --

| | | | | |

| | | | | |

-- -- -- --

| | | | |

| | | | |

-- -- --

--- --- --- --- ---

| | | | | | | |

| | | | | | | |

| | | | | | | |

--- --- ---

| | | | | | | |

| | | | | | | |

| | | | | | | |

參考文獻

相關文件

6 《中論·觀因緣品》,《佛藏要籍選刊》第 9 冊,上海古籍出版社 1994 年版,第 1

After students have had ample practice with developing characters, describing a setting and writing realistic dialogue, they will need to go back to the Short Story Writing Task

• helps teachers collect learning evidence to provide timely feedback & refine teaching strategies.. AaL • engages students in reflecting on & monitoring their progress

Robinson Crusoe is an Englishman from the 1) t_______ of York in the seventeenth century, the youngest son of a merchant of German origin. This trip is financially successful,

fostering independent application of reading strategies Strategy 7: Provide opportunities for students to track, reflect on, and share their learning progress (destination). •

Strategy 3: Offer descriptive feedback during the learning process (enabling strategy). Where the

How does drama help to develop English language skills.. In Forms 2-6, students develop their self-expression by participating in a wide range of activities

Now, nearly all of the current flows through wire S since it has a much lower resistance than the light bulb. The light bulb does not glow because the current flowing through it