Logo
(追記) (追記ここまで)

6903번 - Trident 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB54038334671.047%

문제

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: $t,ドル the height of the tines, $s,ドル the spacing between tines, and $h,ドル the length of the handle. For the example above we have $t = 3,ドル $s = 2,ドル and $h = 4$.

You are to write an interactive program to print a trident. Your program should accept as input the parameters $t,ドル $s,ドル and $h,ドル and print the appropriate trident. You can assume that $t,ドル $s,ドル $h$ are each at least 0 and not larger than 10.

입력

출력

제한

예제 입력 1

4
3
2

예제 출력 1

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

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2003 > CCC 2003 Junior Division 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /