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 | 29 |
30 |
Tags
- 브루트포스
- dfs
- 가상메모리
- N과M
- 다익스트라
- 구현
- BOJ
- 프로그래머스
- 파이썬
- 재귀
- 가상메모리 관리
- python
- BFS
- MYSQL
- 힙
- level1
- level3
- level2
- 수학
- 딕셔너리
- 코딩테스트
- dict
- 스택
- level0
- 다이나믹 프로그래밍
- 백준
- DP
- 운영체제
- programmers
- 그리디
Archives
- Today
- Total
목록전체 글 (397)
동캄의 코딩도장
백준 13699 [점화식] 파이썬
https://www.acmicpc.net/problem/13699 13699번: 점화식 다음의 점화식에 의해 정의된 수열 t(n)을 생각하자: t(0)=1 t(n)=t(0)*t(n-1)+t(1)*t(n-2)+...+t(n-1)*t(0) 이 정의에 따르면, t(1)=t(0)*t(0)=1 t(2)=t(0)*t(1)+t(1)*t(0)=2 t(3)=t(0)*t(2)+t(1)*t(1)+t(2)*t(0)=5 ... 주어진 입력 0 ≤ n www.acmicpc.net #13699 n=int(input()) dp=[0]*(n+1) dp[0]=1 for i in range(1,n+1): for j in range(i-1,-1,-1): dp[i]+=dp[j]*dp[i-1-j] print(dp[n]) DP를 이용하여 값을..
코테/BOJ
2021. 12. 1. 23:45