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

7595번 - Triangles 다국어

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

문제

It is not hard to draw a triangle of stars of any given size. For example, a size 5 triangle would look like this (5 stars high and 5 stars wide):

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

Your task is to draw triangles in a number of sizes.

입력

Each line of input contains a single positive integer, n, 1 <= n <= 100. The last line of input contains 0. For each non-zero number, draw a triangle of that size.

출력

Output consists of triangles of the appropriate sizes. Each triangle is wider at the bottom. There are no gaps between the triangles.

제한

예제 입력 1

5
3
2
7
0

예제 출력 1

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

힌트

출처

ICPC > Regionals > South Pacific > South Pacific Region > New Zealand Programming Contest > NZPC 2008 A번

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

출처

대학교 대회

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

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