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
- Mask Processing
- BFS
- r-cnn
- MinHeap
- DP
- two-stage detector
- opencv
- eecs 498
- real-time object detection
- 강화학습
- machine learning
- 머신러닝
- Reinforcement Learning
- CNN
- YoLO
- One-Stage Detector
- image processing
- canny edge detection
- Python
- dfs
- C++
- object detection
- LSTM
- 백준
- deep learning
- 그래프 이론
- dynamic programming
- AlexNet
- MySQL
- 딥러닝
Archives
- Today
- Total
목록9095 (1)
JINWOOJUNG

접근법 직접 해 보는 것이 DP문제에서 규칙을 찾는 가장 쉬운 방법인 것 같다. 1 표현 1 2 표현 1+1 2 3 표현 1+1+1 1+2 2+1 3 1,2,3은 각각 1,2,4가지로 표현 가능하다. 4를 1,2,3의 합으로 나타내보자. 1+1+1+1 1+1+2 1+2+1 1+3 2+2 2+1+1 3+1 총 7가지인데, 처음이 1일 때 나머지 3을 나타낼 수 있는 가지수는 위에서 구한 4가지, 처음이 2일 때 나머지 2를 나타낼 수 있는 가지수는 2가지 그리고 처음이 1이면 1가지 이다. 따라서 DP[4] = DP[4-1] + DP[4-2] + DP[4-3] 으로 표현 가능하다. 이제 구현해보자. 정답 #include #include using namespace std; int32_t DP[12]; in..
백준
2024. 3. 29. 13:06