문제1382--Fabula's sacred fire

1382: Fabula's sacred fire

실행시간 제한: 1 Sec  메모리사용 제한: 128 MB
제출: 8  통과: 5
[제출] [채점기록] [묻고답하기] [만든사람:]

문제 설명

 Fabula had to make a sacred fire, but he didn't want to make a sacred fire in name only, so he decided to give the task to someone else. The task of making a sacred fire was given to a blacksmith. The book the blacksmith was given contained the ingredients for the sacred fire, but on the page where the picture of the sacred fire was supposed to be, there was no picture, only a description. The blacksmith is stumped by the description, which doesn't make any sense. Help the blacksmith by reading the description and solving the problem so that he can make the sacred fire!

입력 설명

1. Enter with a number between 1 and 26, or Enter with 'EOF'.
2. Repeat step 1 until the program exits.

출력 설명

1. The alphabets used to draw the sacred fire are used in proportion to the value of the number entered.
2. For example, if the number '1' is entered, only 'A' will be used to draw, and if the number '2' is entered, 'A' and 'B' will be used to draw.
3. The sacred fire is composed of rhombuses and squares with four sides of equal length.
4. The sacred fire has some form that is attached to the lower vertex of the rhombus and one side of the square.
5. Each figure uses the largest alphabet on the outermost side and progressively decreases the alphabet as you move inwards.
6. At the innermost part, alphabet 'A' is used.
 7. Each time you print a sacred fire, print a single blank line.
 8. if 'EOF' is entered, print 'END.' and exit the program.

입력 예시 Copy

1
2
3

도움

CLICK ME
A
A
B BAB B BBB BAB BBB
C CBC CBABC CBC C CCCCC CBBBC CBABC CBBBC CCCCC
END.

출처/분류

Fabula