[20250211] BOJ / 플래2 / 부스터 / 권혁준 #81
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://www.acmicpc.net/problem/15955
🧭 풀이 시간
53분
👀 체감 난이도
✏️ 문제 설명
[문제 상황]
[문제 요구사항]
🔍 풀이 방법
$A$에서 $B$까지 가중치 $X$이하인 간선만으로 이동 가능한가?를 판별하는 문제가 된다.⏳ 회고
처음에는 이분 탐색인가 고민하다가 풀이가 떠오르지 않아서 넘어갔다.
같은 x 혹은 y값을 가지는 점들끼리 분리 집합으로 묶어볼까도 했는데, 풀이가 명확히 정립이 안 되고 잘 모르겠어서 또 넘어갔다.
30분동안 고민하다가 도저히 모르겠어서 알고리즘 분류를 까고 풀었다..
간선을 줄여서 그래프 모델링하는 방법이 아래 문제랑 매우 유사하고, 알아두면 좋을 것 같다.
https://www.acmicpc.net/problem/2887