Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Feb 4, 2025

🧷 문제 링크

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

🧭 풀이 시간

50분

👀 체감 난이도

✏️ 문제 설명

정점 $N$개인 그래프에서, 제한시간 내에 시작점 $0$으로부터 특정 지점 $P$개를 모두 들렀다가 다시 $0$으로 돌아오는 게 가능한지 판별
중간에 딱 한 번, 택시를 타고 아무 곳이나 갈 수 있는 대신 시간 $T$ 소모할 수 있음

🔍 풀이 방법

다익스트라 $P$번 돌려서 $P$개 정점만으로 이루어진 그래프를 새로 만들기

이 그래프에서 TSP 돌리기

택시를 탄 경우랑 타지 않은 경우 두 가지 DP를 모두 계산해줘야 함.

⏳ 회고

옛날에 못 풀었던 문제인데, 성장한 느낌이 든다.

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Feb 4, 2025
@ShinHeeEul ShinHeeEul merged commit 7623fcf into main Feb 4, 2025
1 check passed
@Seol-JY Seol-JY changed the title [20250204] BOJ / 플래3 / A Journey to Greece / 권혁준 [20250204] BOJ / 플레3 / A Journey to Greece / 권혁준 Feb 4, 2025
@03do-new30
Copy link
Contributor

영어까지...? 그는 신인가

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.

4 participants