<PREV Problem:
NEXT>
Solved by 160 users: ...
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 

Display

Time limit = 2 second(s)

Memory limit = 64 Mb

Draw digits. Each digit should use area (2+K) x (3 + 2*K).

Input The first line contains desplay size K and size of delimiting space S. Then string with digits follows. Number of digits is less than 101.

Input#1
2 1
012345
Output#1
 --        --   --        -- 
|  |    |    |    | |  | |   
|  |    |    |    | |  | |   
           --   --   --   -- 
|  |    | |       |    |    |
|  |    | |       |    |    |
 --        --   --        -- 
Input#2
1 4
6789
Output#2
 -      -      -      - 
|        |    | |    | |
 -             -      - 
| |      |    | |      |
 -             -      - 

Author:
Ruby QUIZ, Personal MIPT programming contest, 21 September 2008
20 September 2008

<PREV | Problem set | Search related messages | NEXT>


© acm.mipt DevGroup
The page was generated in 170ms

SW soft NIX
ID = 54.162.181.75