Skip to content

Conversation

@Ukj0ng
Copy link
Contributor

@Ukj0ng Ukj0ng commented Oct 22, 2025

🧷 문제 링크

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

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

도로의 통행량이 주어진다. 도로를 철거할 때, 통행량을 최대한 많이 막았다고 한다면 최대로 많이 막은 통행량을 출력하라.

🔍 풀이 방법

도로를 y기준으로 정렬하고 이벤트로 바꿔서 스위핑해 푼다.

⏳ 회고

스위핑은 투포인터와 다른 점이 있다. 어려운 스위핑은 '추가', '삭제' 처럼 각 행위를 이벤트로 처리해 해당 이벤트가 들어올 때마다 처리하는 방식을 사용한다.

@ShinHeeEul ShinHeeEul merged commit cd58ef6 into main Oct 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants