Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Feb 6, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

투자액이 정해져 있고, 기업의 개수와 각 기업에 투자했을 경우에 얻게 되는 이익이 주어졌을 때 가장 많은 이익을 얻을 수 있는 투자방식과 이때의 이익금을 구하는 프로그램을 작성하라.

🔍 풀이 방법

기업을 하나씩 추가한다고 생각하면서 배낭을 돌리면 편하다.

경로 추적은 배열 하나를 더 만들어서 해줬다

⏳ 회고

경로 추적이 매우 귀찮았다

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Feb 6, 2025
@ShinHeeEul ShinHeeEul merged commit 59ae483 into main Feb 6, 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