Skip to content

Conversation

@zinnnn37
Copy link
Contributor

@zinnnn37 zinnnn37 commented Sep 13, 2025

🧷 문제 링크

카드 게임

🧭 풀이 시간

40분

👀 체감 난이도

✏️ 문제 설명

배열 양 쪽 비교하는 dp문제,,

🔍 풀이 방법

dp[i][j] = i부터 j까지의 카드가 있을  최대값

근우는 left, right 둘 중 하나를 선택했을 때에 선택한 숫자 카드의 숫자를 더한 것 중 더 큰 수를 dp에 적용
명우는 더 작은 수를 dp에 적용(그래야 근우가 더 큰 카드를 고를 수 있을 테니까)

⏳ 회고

접근 방법은 금방 나왔는데 소소한 실수로 시간 까먹음,,

@ShinHeeEul ShinHeeEul merged commit dd0ef05 into main Sep 13, 2025
1 check passed
@zinnnn37 zinnnn37 added the success 👍 해설을 보지 않고 풀었을 때 label Sep 13, 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.

3 participants