|
Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Question by Saadi Myftia.
Character Pyramids
{By Saadi Myftia}
Question:
You are given a letter (ch) and a number (n).
Print a pattern like the one shown in the samples.
Input specification
You will be given a character between 'A' and 'M',
then an integer number (n) which shows the
number of pyramids you have to print
where 1 ≤ n ≤ 20.
Output specification
Simply print the pyramids like specified.
Sample Input I |
Sample Input II |
D 2
|
C 4
|
Sample Output I |
Sample Output II |
A A
BCB BCB
CDEDC CDEDC
DEFGFEDEFGFED
|
A A A A
BCB BCB BCB BCB
CDEDCDEDCDEDCDEDC
|
Note:
This is a format checking question, so every space or end-line
char becomes important in such questions.
Please pay attention that there is an endline, at the end
of program.
Для отправки решений необходимо выполнить вход.
|