티스토리 뷰
문제 내용에 있는 2*N-1을 이용하자
num = int(input())
for Repeat in range(1, num + 1):
for repeat in range(num, Repeat, -1):
print(" ", end = "")
for rep in range(0, 2 * Repeat - 1):
print("*", end = "")
print("")'문제 풀이 > Baekjoon Online Judge' 카테고리의 다른 글
| [python3] 2444번 별찍기 - 7 (0) | 2018.04.04 |
|---|---|
| [python3] 2443번 별찍기 - 6 (0) | 2018.04.03 |
| [python3] 1065번 한수 (0) | 2018.04.02 |
| [python3] 4673번 셀프 넘버 (0) | 2018.04.02 |
| [python3] 4344번 평균은 넘겠지 (0) | 2018.03.29 |
댓글