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

접근법 Dynamic Programming의 가장 쉬운 문제이다. 직관적인 접근이 가능한데, 우리가 원하는 것은 3a+5b = Inupt을 만족하는 a,b에 대하여 a+b가 최소가 되는 경우를 찾고싶은 것이다. 또한, 만들 수 없는 조합일 때는 결과가 -1이야 하는것을 명심하면 된다. 단순히 a 혹은 b 만으로 Input을 나타낼 수 있는 경우도 고려해야 하기 때문에 2중 for 문에서 해당 조건만 고려하면 쉽게 접근 가능하다. 또한, 3a+5b = Input을 만족하는 a,b에 대해서 Result를 처음에 -1로 설정하고 -1인 경우는 그냥 a+b를 Result로, -1이 아닌 경우 기존 Result와 a+b 중 작은 값을 Result로 설정하면 된다. 정답 #include #include using ..
백준
2024. 3. 24. 14:33