Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Oct 14, 2025

🧷 문제 링크

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

Video Label

🧭 풀이 시간

1시간

👀 체감 난이도

✏️ 문제 설명

N개의 집이 있고, 반딧불이 s번 집에서 e번 집으로 이동함.
경유하는 집마다 2^X 방울의 이슬을 마셔야 하는데, 2^C 방울 이상 마시면 잠
각 쿼리마다 최소 시간 구하기

🔍 풀이 방법

플로이드-워셜 변형 + DP

dp[k][i][j] = 1번~k번 정점만 경유해서 i→j 최단거리
dp[k][i][j] = dp[k][i][j] dp[k+1][i][j] 중에 작은걸로다가

X번 집의 이슬 = 2^X 방울
C 미만 번호의 정점들만 경유 가능한지 체크하면 됨

⏳ 회고

어렵구만

@Seol-JY Seol-JY added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Oct 14, 2025
@ShinHeeEul ShinHeeEul merged commit 2d8fc94 into main Oct 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants