LCD Display Test
InterviewTime limit2sMemory limit128 MB
Print a given number in seven-segment LCD style using dashes and bars, scaled to a given digit size.
- Level
Easy3 of 10
- Topics
- Simulation, Implementation, Array
- Solved
- No attempts yet
Problem
Jimin bought a new computer. The LCD display monitor that came with it does not show characters properly, so Jihwan wants to write a program that can test the monitor.
Input
The first line contains two integers s and n. 1 <= s <= 10 and 0 <= n <= 9,999,999,999. The integer n is the number to display on the LCD monitor, and s is the size of each digit.
Output
Print the number n in an LCD style using - and |. Each digit occupies s + 2 columns and 2s + 3 rows, and every unused cell must be a space. Put one blank column between adjacent digits.