반응형
https://www.acmicpc.net/problem/2446
# @Author YoungMinKim
# baekjoon
n = int(input())
num1=0
for i in range(n-1,-1,-1):
print(' '*num1+'*'*(2*i+1))
num1+=1
num2 = n-2
for j in range(1,n):
print(' '*num2+'*'*(2*j+1))
num2-=1
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2523 (0) | 2020.08.24 |
---|---|
baekjoon - python - 2480 (0) | 2020.08.24 |
baekjoon - python - 2441 (0) | 2020.08.24 |
baekjoon - python - 2440 (0) | 2020.08.24 |
baekjoon - python - 2439 (0) | 2020.08.24 |
댓글