목차

나연 정렬

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()