[20251213] BOJ / G2 / 반도체 설계 / 한종욱 #1662
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/2352
🧭 풀이 시간
40분
👀 체감 난이도
✏️ 문제 설명
반도체 포트가 안 교차하고 제일 많이 연결할 수 있는 개수는?
🔍 풀이 방법
lis배열의 상태를 '길이가 i+1인 증가 부분 수열 중에서, 가장 작은 끝나는 값'으로 설정하고, 가장 작은 끝나는 값의 위치를 구할 때 이분 탐색을 사용했다.
⏳ 회고
3번째 푸는데 이제야 좀 이해가 된다.