| ps | |
|---|---|
| 링크 | acmicpc.net/… |
| 출처 | BOJ |
| 문제 번호 | 32873 |
| 문제명 | 나연 정렬 |
| 레벨 | 골드 2 |
| 분류 |
LIS |
| 시간복잡도 | O(nlogn) |
| 인풋사이즈 | n<=500,000 |
| 사용한 언어 | Python 3.13 |
| 제출기록 | 92760KB / 292ms |
| 최고기록 | 288ms |
| 해결날짜 | 2025/03/03 |
"""Solution code for "BOJ 32873. 나연 정렬".
- Problem link: https://www.acmicpc.net/problem/32873
- Solution link: http://www.teferi.net/ps/problems/boj/32873
Tags: [lis]
"""
import sys
from teflib import seqtask
def main():
N = int(sys.stdin.readline()) # pylint: disable=unused-variable
A = [int(x) for x in sys.stdin.readline().split()]
print(seqtask.length_of_longest_increasing_subsequence(A))
if __name__ == '__main__':
main()