Problem F. Problem L. Visual Cube

时间限制 1000 ms   内存限制 512 MB

Little Q likes solving math problems very much. Unluckily, however, he does not have good spatial ability. Everytime 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 any more. As a result, he turns to you for help.
Given a cube with length $a$, width $b$ and height $c$, please write a program to display the cube.
 

输入数据

The first line of the input contains an integer $T(1\leq T\leq50)$, denoting the number of test cases.
In each test case, there are $3$ integers $a,b,c(1\leq a,b,c\leq 20)$, denoting the size of the cube.
 

输出数据

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

样例输入

复制
2
1 1 1
6 2 4

样例输出

复制
..+-+
././|
+-+.+
|.|/.
+-+..
....+-+-+-+-+-+-+
.../././././././|
..+-+-+-+-+-+-+.+
./././././././|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/.
+-+-+-+-+-+-+.+..
|.|.|.|.|.|.|/...
+-+-+-+-+-+-+....

提交

请先 登录

© 2025 FAQs Contact About