Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Aug 5, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/17845

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

공부 시간의 한계를 초과하지 않으면서 과목의 중요도 합이 최대가 되도록 과목을 선택했을 때,
최대가 되는 중요도 구하기

🔍 풀이 방법

i번째 시간에 들을 수 있는 최대 중요도를 bag 배열에 갱신해줌
점화식 : bag[i][j] = Math.max(bag[i-1][j], bag[i-1][j-time[i]] + prior[i]);

⏳ 회고

전형적인 배낭문제이다

@suyeun84 suyeun84 self-assigned this Aug 5, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Aug 5, 2025
@ShinHeeEul ShinHeeEul merged commit eeea4dc into main Aug 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants