1169 字符棱形


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

根据读入的字符和边长,勾画字符棱形。

Input

输入数据含有不超过50组的数据,每组数据包括一个可见字符c和一个整数n(1≤n≤30)。

Output

输出以c为填充字符,边长为n的棱形,勾画每个棱形时都应另起一行。

Sample

Input

A 5 B 3

Output

A
   AAA
  AAAAA
 AAAAAAA
AAAAAAAAA
 AAAAAAA
  AAAAA
   AAA
    A
  B
 BBB
BBBBB
 BBB
  B

Source: qianneng


Comments

There are no comments at the moment.