Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Jun 30, 2025

🧷 문제 링크

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

🧭 풀이 시간

35분

👀 체감 난이도

✏️ 문제 설명

이웃하는 집 색 다르게 칠할때, 최소비용 찾기, 처음집과 끝집도 인접한 것으로 간주

🔍 풀이 방법

dp문제

조건은 결국

  • 인접한 집끼리는 색이 달라야 함
  • 첫 번째 집과 마지막 집의 색이 달라야 함 (원형 조건)
    를 만족하면됨

⏳ 회고

Easy
MAX_VALUE 말고 987654321 사용하기 ㅎㅎ

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