Public Judge

pjudge

Time Limit: 1 s Memory Limit: 512 MB Total points: 100 Hackable ✓
الإحصائيات

题目描述

今天是 YQH 的生日,她得到了一个长方体作为生日礼物,这个长方体的长宽高分别为 $a,b,c$。这个长方体是由 $a\times b\times c$ 个大小为 $1\times 1\times 1$ 的正方体拼接而成。

由于 YQH 十分喜欢立体几何,于是她打算把长方体的斜二等轴测图画出来。但是她发现一个问题:长方体太大了,她找不到一张足够大的纸来画图,于是她退而求次,准备编程用字符画来画图。

可惜,YQH 的编程水平不高,所以她找到你来帮助她。

如果你不知道斜二等轴测图是什么或不知道如何用字符画表示斜二等轴测图,可以参考下面的图片以及样例来理解。

当 $a=4,b=3,c=2$,左边是斜二等轴测图,右边是字符画:

输入格式

第一行一个正整数 $T$,表示数据组数。

对于每组数据一行三个正整数分别表示题面中的 $a,b,c$。

输出格式

对于每组数据,输出 $1+2(b+c)$ 行,每行一个长度为 $1+2(a+b)$ 的字符串表示答案。

样例

输入1

2
1 1 1
6 2 4

输出1

..+-+
././|
+-+.+
|.|/.
+-+..
....+-+-+-+-+-+-+
.../././././././|
..+-+-+-+-+-+-+.+
./././././././|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/.
+-+-+-+-+-+-+.+..
|.|.|.|.|.|.|/...
+-+-+-+-+-+-+....

样例输入/输出 2

见下发文件中的 ex_draw2.in/ex_draw2.ans

样例输入/输出 3

见下发文件中的 ex_draw3.in/ex_draw3.ans

数据范围

对于 $30\%$ 的数据,$b=c=1$。

对于 $60\%$ 的数据,$c=1$。

对于 $100\%$ 的数据,$1\le T\le 50$,$1\le a,b,c\le 20$。

About Issues

We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.

You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.

STOP! Before you submit an issue, please READ the following guidelines:

  1. This is not a place to publish a discussion, editorial, or requests to debug your code. Your issue will only be visible by you and problem moderators. Other users will not be able to view or reply your issues.
  2. Do not submit duplicated issues. If you have already submitted one, please wait for an moderator to review it. Submitting multiple issues will not speed up the review process and might cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
  4. Be sure your issue is related to this problem. If you need to submit an issue regarding another problem, contest, category, etc., you should submit it to the corresponding page.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.