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

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2443번: 별 찍기 - 6 (0) | 2024.06.17 |
---|---|
[Python/파이썬] 백준 2442번: 별 찍기 - 5 (0) | 2024.06.17 |
[Python/파이썬] 백준 2440번: 별 찍기 - 3 (0) | 2024.06.15 |
[Python/파이썬] 백준 2439번: 별 찍기 - 2 (0) | 2024.06.15 |
[Python/파이썬] 백준 2438번: 별 찍기 - 1 (0) | 2024.06.15 |