Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 프로그래머스
- react
- js to ts
- 토이프로젝트
- 공부
- 기초100제
- react-redux
- OS
- 정렬
- 일상
- 분할메모리할당
- CPU 스케줄링
- Java
- 자료구조
- Spring
- memory
- Operating System
- C++
- 알고리즘
- Redux
- 협업
- 리덕스장바구니
- codeup
- 코드업
- web
- 백준
- 타입스크립트
- error
- 파이썬
- 스프링
Archives
- Today
- Total
목록어려워어억 (1)
감자튀김 공장🍟
[백준/2447] 별 찍기 - 10 (with 파이썬)
✔ 문제 ✔ 풀이 import sys input = sys.stdin.readline n = int(input()) def star(x): if x == 3: return ["***", "* *", "***"] arr = star(x // 3) stars = [] for i in arr: stars.append(i * 3) for i in arr: stars.append(i + ' ' * (x // 3) + i) for i in arr: stars.append(i * 3) return stars print('\n'.join(star(n))) ✔ 후기 전에 풀었던 피보나치 같은 재귀는 쉽게 풀었는데 이번 문제는 어려웠다. 구글링 해서 정답 코드를 보긴 했지만... ^_ㅠ 제일 작은 패턴은 n = 3일 때부..
Algorithm/BOJ
2022. 11. 23. 16:36