728x90
[백준] 2444번 Python 파이썬
https://www.acmicpc.net/problem/2444
n = int(input())
for i in range(1,n+1):
print(' '*(n-i)+'*'*(2*i-1))
for i in range(n-1,0,-1):
print(' '*(n-i)+'*'*(2*i-1))
'BAEKJOON (Python) > 단계별' 카테고리의 다른 글
BAEKJOON_9086 "문자열" PYTHON (0) | 2023.02.23 |
---|---|
BAEKJOON_2743 "단어 길이 재기" PYTHON (0) | 2023.02.23 |
BAEKJOON_1316 "그룹 단어 체커" PYTHON (0) | 2023.02.22 |
BAEKJOON_2941 "크로아티아 알파벳" PYTHON (0) | 2023.02.22 |
BAEKJOON_10988 "팰린드롬인지 확인하기" PYTHON (0) | 2023.02.22 |