Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Jun 20, 2025

🧷 문제 링크

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

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

가장 긴 증가하는 부분 수열(LIS)의 길이와 LIS 자체를 출력.
N은 최대 100만

🔍 풀이 방법

이분 탐색
LIS 배열을 이분 탐색을 통하여 만들기(nlogn)
LIS의 특정 인덱스와 매핑되는 실제 arr의 인덱스를 저장.
arr의 특정 원소를 마지막으로 하여 만들 수 있는 LIS의 길이를 저장.
LIS 배열의 길이가 결국 LIS의 길이라는 점을 이용하여 값을 1씩 줄여가며 값을 출력.

⏳ 회고

헷갈려....

@lkhyun lkhyun self-assigned this Jun 20, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Jun 20, 2025
@ShinHeeEul ShinHeeEul merged commit f47fdcf into main Jun 20, 2025
1 check passed
@lkhyun lkhyun changed the title [20250620] BOJ / P5 / 가장 긴 증가하는 부분 수열 / 이강현 [20250620] BOJ / P5 / 가장 긴 증가하는 부분 수열 5 / 이강현 Jun 20, 2025
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.

3 participants