Visual Cube
Time limit1sMemory limit512 MB
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 , width , and height , please write a program to display it.
Input
The first line contains an integer (), the number of test cases. For each test case:
The only line contains three integers , , (), 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.