![[백준 알고리즘] 2446번 별 찍기 - 9 (Python)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FrVpzL%2FbtqCJmG11Vv%2FYfdVymhjOW3aPszaKihxnK%2Fimg.png)
[백준 알고리즘] 2446번 별 찍기 - 9 (Python)언어, 알고리즘 공부/백준2020. 3. 17. 22:02
Table of Contents
<Python>
N = int(input())
for i in reversed(range(1, N+1)):
print(' ' * (N - i) + "*" * (2 * i-1))
for i in range(2, N+1):
print(' ' * (N - i) + "*" * (2 * i - 1))
▼ 링크
https://www.acmicpc.net/problem/2446
2446번: 별 찍기 - 9
첫째 줄부터 2×N-1번째 줄까지 차례대로 별을 출력한다.
www.acmicpc.net
반응형
'언어, 알고리즘 공부 > 백준' 카테고리의 다른 글
[백준 알고리즘] 18252번 큐 2 (Python) (0) | 2020.03.19 |
---|---|
[백준 알고리즘] 10996번 별 찍기 - 21 (Python) (0) | 2020.03.17 |
[백준 알고리즘] 2523번 별 찍기 - 13 (Python, Java) (0) | 2020.03.17 |
[백준 알고리즘] 10039번 평균 점수 (Python, Java) (0) | 2020.03.17 |
[백준 알고리즘] 14681번 사분면 고르기 (Python, Java) (0) | 2020.03.17 |
@쿠몬e :: ˚˛˚ * December☃ 。* 。˛˚
전공 공부 기록 📘
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!