Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Nov 17, 2025

🧷 문제 링크

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

🧭 풀이 시간

120분

👀 체감 난이도

✏️ 문제 설명

서울에서 경산까지 N개의 구간을 자전거 혹은 도보를 통해 갈거임.
가면서 구간마다 모금을 할거임. 이때 이동수단에 따라 모금액이 다름.
K분 이내로 가는데 가장 많은 모금액을 얻도록 할때, 그 모금액을 출력.

🔍 풀이 방법

배낭
배낭문제처럼 풀되, 갈 수 없는 경우의 dp값이 전파되는 것을 꼭 막는 것이 핵심.

⏳ 회고

어차피 K안에 갈 수 있으니 간단하게 풀었는데, 유효하지 않은 dp값을 업데이트시 사용하지 않도록 하는 것이 중요했다.

@lkhyun lkhyun self-assigned this Nov 17, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Nov 17, 2025
@ShinHeeEul ShinHeeEul merged commit c35192f into main Nov 17, 2025
1 check passed
@Seol-JY
Copy link
Contributor

Seol-JY commented Nov 18, 2025

우리집이다

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.

4 participants