Problem1552--22-循环-2-字母圣诞树

1552: 22-循环-2-字母圣诞树

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

打印一个字母圣诞树。

Input

多组样例,第一行为样例的个数,接下来每个样例是一个大写英文字母,占一行。

Output

输出对应的字母圣诞树,每行末尾没有空格,每个圣诞树的最后一行前无空格。

Sample Input Copy

3
A
B
C

Sample Output Copy

 A
AAA
  A
 AAA
  B
BBBBB
   A
  AAA
   B
 BBBBB
   C
CCCCCCC

Source/Category