Skip to content

[20250926] PGM / LV2 / 전력망을 둘로 나누기 / 김수연#983

Merged
suyeun84 merged 1 commit intomainfrom
suyeun84
Sep 26, 2025
Merged

[20250926] PGM / LV2 / 전력망을 둘로 나누기 / 김수연#983
suyeun84 merged 1 commit intomainfrom
suyeun84

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/86971

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

n개의 송전탑이 연결되어 있을 때, 하나의 wires를 끊어서 송전탑 개수가 가능한 비슷하도록 두 전력망으로 나누었을 때,
두 전력망이 가지고 있는 송전탑 개수의 차이 구하기

🔍 풀이 방법

완전 탐색
각 wire를 끊었을 때, 두 전력망이 가지게 되는 송전탑의 차이를 구하고, 최솟값 찾음

⏳ 회고

설마 완탐일까 했는데 진짜 완탐이다

@suyeun84 suyeun84 self-assigned this Sep 26, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Sep 26, 2025
@suyeun84 suyeun84 merged commit bee6d5b into main Sep 26, 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.

1 participant