일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바
- 수학
- 정렬
- 알고리즘
- Median of Medians
- C++
- java
- 선택알고리즘
- 재귀
- 기수정렬
- 계수정렬
- 코딩테스트
- 삽입정렬
- 프로그래밍언어
- 안드로이드
- 동적프로그래밍
- 정수론
- 백트래킹
- 다이나믹프로그래밍
- 백준
- 자료구조
- 퀵정렬
- DP
- 버블정렬
- 프로그래밍
- 선택정렬
- 병합정렬
- SNS
- 동적계획법
- 힙정렬
- Today
- Total
목록다이나믹프로그래밍 (2)
MODE::CREATIVE
https://www.acmicpc.net/problem/11727문제 해석dp(다이나믹 프로그래밍)을 이용하여 2xn의 타일을 채울수 있는 경우의 수 구하기알고리즘 분류다이나믹 프로그래밍풀이 arr[i] = (arr[i-1] + arr[i-2]*2) 라는 규칙을 찾아내 dp배열 채우기코드#include using namespace std;int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; int arr[1001]; arr[1] = 1; arr[2] = 3; cin >> n; for(int i = 3; i
https://www.acmicpc.net/problem/11726 문제 해석dp(다이나믹 프로그래밍)을 이용하여 2xn의 타일을 채울수 있는 경우의 수 구하기알고리즘 분류다이나믹 프로그래밍풀이 arr[i] = (arr[i-1] + arr[i-2]) 라는 규칙을 찾아내 dp배열 채우기코드#include using namespace std;int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; int arr[1001]; arr[1] = 1; arr[2] = 2; cin >> n; for(int i = 3; i