Trident | 프로그래밍의 벗 PivotOJ
PivotOJ

Trident

시간 제한: 1000ms메모리 제한: 128MB출처: CCC 2003 JuniorBOJ 6903

문제

A trident is a fork with three tines (prongs). A simple picture of a trident can be made from asterisks and spaces:

*  *  *
*  *  *
*  *  *
*******
   *
   *
   *
   *

In this example, each tine is a vertical column of 3 asterisks. Each tine is separated by 2 spaces. The handle is a vertical column of 4 asterisks below the middle tine.

Tridents of various shapes can be drawn by varying three parameters: tt, the height of the tines, ss, the spacing between tines, and hh, the length of the handle. For the example above we have t=3t = 3, s=2s = 2, and h=4h = 4.

You are to write an interactive program to print a trident. Your program should accept as input the parameters tt, ss, and hh, and print the appropriate trident. You can assume that tt, ss, hh are each at least 0 and not larger than 10.

예제

예제 1

입력
4
3
2
출력
*   *   *
*   *   *
*   *   *
*   *   *
*********
    *
    *
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.