Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Nov 25, 2025

🧷 문제 링크

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

🧭 풀이 시간

1시간

👀 체감 난이도

✏️ 문제 설명

N개의 색이 원형으로 배열된 색상환에서 인접하지 않은 K개의 색을 선택하는 경우의 수를 구하는 문제

🔍 풀이 방법

dp[i][j] = i개 중 인접하지 않게 j개 선택
dp[i][j] = dp[i-1][j] + dp[i-2][j-1]
i번째 안 선택 + i번째 선택(i-1은 불가)

⏳ 회고

원형 배열을 두 케이스로 분리해야함
왤케어렵지

@Seol-JY Seol-JY added the success 👍 해설을 보지 않고 풀었을 때 label Nov 25, 2025
@ShinHeeEul ShinHeeEul merged commit 32b0ea3 into main Nov 25, 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