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
- js to ts
- codeup
- 기초100제
- 분할메모리할당
- Spring
- 토이프로젝트
- 협업
- Operating System
- 일상
- 공부
- C++
- Java
- 타입스크립트
- memory
- 자료구조
- react-redux
- 코드업
- 스프링
- 백준
- react
- 정렬
- web
- 파이썬
- 리덕스장바구니
- 프로그래머스
- error
- OS
- CPU 스케줄링
- 알고리즘
- Redux
Archives
- Today
- Total
목록9184 (1)
감자튀김 공장🍟
[백준/9184] 신나는 함수 실행 (with 파이썬)
✔ 문제 ✔ 풀이 👽 시간 초과 - 재귀함수 import sys input = sys.stdin.readline def w(a, b, c): if a 20: return w(20, 20, 20) elif a < b < c: return w(a, b, c-1) + w(a, b-1, c-1) - w(a, b-1, c) else: return w(a-1, b, c) + w(a-1, b-1, c) + w(a-1, b, c-1) - w(a-1, b-1, c-1) while True: a, b, c = map(int, input().split()) if a == -1 and b == -1 and c == -1: break res = w(a, b, c) print("w({}, {}, {}) = {}".format(a..
Algorithm/BOJ
2023. 2. 7. 23:10