Under construction

Still being built. Things may change

Visual Cube

Time limit1sMemory limit512 MB

Summary
Given box dimensions a, b, c, print the 3D-looking wireframe drawing of the rectangular parallelepiped in the required ASCII format.
Level

Medium4 of 10

Topics
Implementation, Simulation, String, Matrix
Solved
No attempts yet

Problem

Little Q likes solving math problems very much. Unluckily, however, he does not have a good spatial ability. Every time he meets a 3D geometry problem, he will struggle to draw a picture.

Now he meets a 3D geometry problem again. This time, he doesn't want to struggle anymore. As a result, he turns to you for help.

Given a rectangular parallelepiped with length aa, width bb, and height cc, please write a program to display it.

Input

The first line contains an integer TT (1≤T≤501 \leq T \leq 50), the number of test cases. For each test case:

The only line contains three integers aa, bb, cc (1≤a,b,c≤201 \leq a,b,c \leq 20), denoting the dimensions of the rectangular parallelepiped.

Output

For each test case, print several lines to display the rectangular parallelepiped. See the sample output for details.

Examples1

  1. Example 1

    Input
    2
    1 1 1
    6 2 4
    
    Expected output
    ..+-+
    ././|
    +-+.+
    |.|/.
    +-+..
    ....+-+-+-+-+-+-+
    .../././././././|
    ..+-+-+-+-+-+-+.+
    ./././././././|/|
    +-+-+-+-+-+-+.+.+
    |.|.|.|.|.|.|/|/|
    +-+-+-+-+-+-+.+.+
    |.|.|.|.|.|.|/|/|
    +-+-+-+-+-+-+.+.+
    |.|.|.|.|.|.|/|/.
    +-+-+-+-+-+-+.+..
    |.|.|.|.|.|.|/...
    +-+-+-+-+-+-+....