HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > IMPC - 2013-2014 > problem:


14-05-70. 50477 - Character Pyramids

IMPC - 2013-2014

Start: Mar.16.2013 at 12:00:00 PM
Finish: Mar.16.2013 at 05:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (1)

Contest problems

• 14-05-20. 50677 - The Cottage
• 14-05-20. 50413 - Valid Permutations
• 14-05-30. 50688 - Epoka Furgon
• 14-05-30. 50706 - The most crowd...
• 14-05-40. 50689 - The biggest build...
• 14-05-50. 50414 - Traffic
• 14-05-50. 50421 - Repairing road s...
• 14-05-60. 50371 - Modified Karnaug...
• 14-05-70. 50477 - Character Pyr...
• 14-05-80. 50372 - Number Quadrup...
• 14-05-90. 50549 - k-Nearest Neigh...
• 14-05-95. 50479 - Bit Compressor
• 14-07-10. 50383 - Noisy Mornings
• 14-07-20. 50384 - Permutations revi...
• 14-07-30. 50385 - The 3n + 1 problem
• 14-07-50. 50367 - Bar Codes
• 2013-03-10. 50579 - Pentagonal Nu...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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.
Для отправки решений необходимо выполнить вход.

www.contester.ru