Problem M
ASCII Box 3
Languages
en
is

Another programming contest, another problem about ASCII boxes! So far all the ASCII boxes have been missing something. The more artistically inclined contestants of the last years have complained the problems lacked depth, so this year we have to add a third dimension to the images.
To draw the box the letters +, -, |, / and x should be used. The vertical edges are drawn with | and the horizontal edges with -. The corners of the box are drawn with + and / is used for edges that face away from our perspective. Finally x is used if two non-parallel edges overlap (on the picture). If a corner and edge overlap it should still be drawn with a +.
To make sure the box is printed correctly, an appropriate number of spaces has to be placed before and between the letters of each line. Additionally, do not print any extra spaces after the last letter of a line, just a single newline character after the last letter on each line.
The box has some specific height
This lets us draw the front face of the box, which is a
Input
The first and only line of input contains three integers
Output
Print a box with the given dimensions, as described above. Note that the output must be exactly correct, even up to whitespace.
Scoring
Group |
Points |
Constraints |
1 |
20 |
|
2 |
30 |
|
3 |
20 |
|
4 |
30 |
|
Sample Input 1 | Sample Output 1 |
---|---|
3 3 3 |
+-+ /|/| +-+-+ |/|/ +-+ |
Sample Input 2 | Sample Output 2 |
---|---|
3 4 2 |
+--+ +x-+| |+-x+ +--+ |
Sample Input 3 | Sample Output 3 |
---|---|
4 1 3 |
+ /| + | | + |/ + |
Sample Input 4 | Sample Output 4 |
---|---|
13 9 4 |
+-------+ /| /| / | / | +--x----+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----x--+ | / | / |/ |/ +-------+ |