[20250926] PGM / LV2 / 전력망을 둘로 나누기 / 김수연 #983
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://school.programmers.co.kr/learn/courses/30/lessons/86971
🧭 풀이 시간
20분
👀 체감 난이도
✏️ 문제 설명
n개의 송전탑이 연결되어 있을 때, 하나의 wires를 끊어서 송전탑 개수가 가능한 비슷하도록 두 전력망으로 나누었을 때,
두 전력망이 가지고 있는 송전탑 개수의 차이 구하기
🔍 풀이 방법
완전 탐색
각 wire를 끊었을 때, 두 전력망이 가지게 되는 송전탑의 차이를 구하고, 최솟값 찾음
⏳ 회고
설마 완탐일까 했는데 진짜 완탐이다