시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 15 | 9 | 9 | 64.286% |
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 $a$, width $b$, and height $c$, please write a program to display it.
The first line contains an integer $T$ ($1 \leq T \leq 50$), the number of test cases. For each test case:
The only line contains three integers $a$, $b$, $c$ ($1 \leq a,b,c \leq 20$), denoting the dimensions of the rectangular parallelepiped.
For each test case, print several lines to display the rectangular parallelepiped. See the sample output for details.
2 1 1 1 6 2 4
..+-+ ././| +-+.+ |.|/. +-+.. ....+-+-+-+-+-+-+ .../././././././| ..+-+-+-+-+-+-+.+ ./././././././|/| +-+-+-+-+-+-+.+.+ |.|.|.|.|.|.|/|/| +-+-+-+-+-+-+.+.+ |.|.|.|.|.|.|/|/| +-+-+-+-+-+-+.+.+ |.|.|.|.|.|.|/|/. +-+-+-+-+-+-+.+.. |.|.|.|.|.|.|/... +-+-+-+-+-+-+....