반응형
문제 설명
https://www.acmicpc.net/problem/2444
제출한 코드
num = int(input())
for i in range(1, num):
print(" "*(num-i-1),"*"*(i*2-1))
print("*"*(num*2-1))
for i in range(num-1, 0, -1):
print(" "*(num-i-1),"*"*(i*2-1))
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2475번: 검증수 (0) | 2024.06.20 |
---|---|
[Python/파이썬] 백준 2455번: 지능형 기차 (0) | 2024.06.20 |
[Python/파이썬] 백준 2443번: 별 찍기 - 6 (0) | 2024.06.17 |
[Python/파이썬] 백준 2442번: 별 찍기 - 5 (0) | 2024.06.17 |
[Python/파이썬] 백준 2441번: 별 찍기 - 4 (0) | 2024.06.17 |