UVa 706

From Algorithmist
Jump to navigation Jump to search

706-LC-Display[edit]

http://uva.onlinejudge.org/external/7/706.html

Summary[edit]

Simple Output related problem. 
Just do what they want.

Hints[edit]

Notice that each digit has five block/part. 
Make sure your output doesn't have any trailing spaces or extra newlines, but
remember that you should output a blank line after each number, including the
last one (or you will get Presentation Error :) )

Note that the number may start with a zero.

Input[edit]

1 0123456789
2 0123456789
3 0123456789
0 0

Output[edit]

 -       -   -       -   -   -   -   - 
| |   |   |   | | | |   |     | | | | |
         -   -   -   -   -       -   - 
| |   | |     |   |   | | |   | | |   |
 -       -   -       -   -       -   - 

 --        --   --        --   --   --   --   -- 
|  |    |    |    | |  | |    |       | |  | |  |
|  |    |    |    | |  | |    |       | |  | |  |
           --   --   --   --   --        --   -- 
|  |    | |       |    |    | |  |    | |  |    |
|  |    | |       |    |    | |  |    | |  |    |
 --        --   --        --   --        --   -- 

 ---         ---   ---         ---   ---   ---   ---   --- 
|   |     |     |     | |   | |     |         | |   | |   |
|   |     |     |     | |   | |     |         | |   | |   |
|   |     |     |     | |   | |     |         | |   | |   |
             ---   ---   ---   ---   ---         ---   --- 
|   |     | |         |     |     | |   |     | |   |     |
|   |     | |         |     |     | |   |     | |   |     |
|   |     | |         |     |     | |   |     | |   |     |
 ---         ---   ---         ---   ---         ---   --- 

Solutions[edit]

C++: http://www.lukejduncan.com/2009/09/uva-706---lcd-display.php

C: https://dzone.com/articles/solution-lcd-display-problem