[20250822] BOJ / G3 / 하늘에서 별똥별이 빗발친다 / 한종욱#719
Merged
ShinHeeEul merged 1 commit intomainfrom Aug 22, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/14658
🧭 풀이 시간
60분
👀 체감 난이도
✏️ 문제 설명
2차원 좌표에 점들이 주어지고 정사각형이 주어지는데, 그 정사각형으로 최대한 많은 점을 덮어라
🔍 풀이 방법
처음엔 각 점이$L * L$ 의 사각형에 왼쪽 상단에 놓고 $K * K$ 의 시간복잡도로 찾았는데, 틀렸다.
어떤 점든 한 점이라도 모서리에 있으면 최대라고 생각하고, 각 x, y축의 좌표를 독립적으로 보고 하나씩 뽑아 왼쪽 상단 모서리에 놓고 각 점들을 찾아 포함되는지 찾아 개수를 세 최대값을 찾았다.
⏳ 회고
점이 꼭짓점이 아니라 모서리에 있을 수 있다는 점을 간과해서 오래걸린 것 같다.