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 | 31 |
Tags
- DP
- 자료구조
- 힙정렬
- 재귀
- 다이나믹프로그래밍
- SNS
- 정렬
- 동적프로그래밍
- 안드로이드
- 백트래킹
- 코딩테스트
- java
- 프로그래밍
- 정수론
- 자바
- 백준
- 알고리즘
- 버블정렬
- 병합정렬
- C++
- 선택정렬
- 기수정렬
- 퀵정렬
- 프로그래밍언어
- Median of Medians
- 수학
- 동적계획법
- 선택알고리즘
- 삽입정렬
- 계수정렬
Archives
- Today
- Total
목록다이나믹프로그래밍 (2)
MODE::CREATIVE
[백준][c++] 11727번: 2×n 타일링 2
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
BOJ
2024. 9. 9. 15:33
[백준][c++] 11726번: 2×n 타일링
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
BOJ
2024. 9. 9. 15:24