-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bronze III] Title: 별 찍기 - 5, Time: 32 ms, Memory: 31120 KB -BaekjoonHub
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# [Bronze III] 별 찍기 - 5 - 2442 | ||
|
||
[문제 링크](https://www.acmicpc.net/problem/2442) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 31120 KB, 시간: 32 ms | ||
|
||
### 분류 | ||
|
||
구현 | ||
|
||
### 제출 일자 | ||
|
||
2024년 11월 24일 01:27:55 | ||
|
||
### 문제 설명 | ||
|
||
<p>첫째 줄에는 별 1개, 둘째 줄에는 별 3개, ..., N번째 줄에는 별 2×N-1개를 찍는 문제</p> | ||
|
||
<p>별은 가운데를 기준으로 대칭이어야 한다.</p> | ||
|
||
### 입력 | ||
|
||
<p>첫째 줄에 N(1 ≤ N ≤ 100)이 주어진다.</p> | ||
|
||
### 출력 | ||
|
||
<p>첫째 줄부터 N번째 줄까지 차례대로 별을 출력한다.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
n = int(input()) | ||
for i in range(n): | ||
print(" "*(n-i-1), "*"*i, "*", "*"*i, sep="") |