김두두의 블로그

[파이썬] 백준 2523번 별 찍기 - 13 본문

it

[파이썬] 백준 2523번 별 찍기 - 13

두두100 2022. 4. 10. 21:23

https://www.acmicpc.net/problem/2523

 

2523번: 별 찍기 - 13

첫째 줄부터 2×N-1번째 줄까지 차례대로 별을 출력한다.

www.acmicpc.net

n=int(input())
for i in range(1,n+1):
    print('*'*i)
for i in range(1,n):
    print('*'*(n-i))