사용자 도구

사이트 도구


ps:problems:boj:12355

Ocean View (Large)

ps
링크acmicpc.net/…
출처BOJ
문제 번호12355
문제명Ocean View (Large)
레벨실버 2
분류

LIS

시간복잡도O(T*nlogn)
인풋사이즈T<=100, n<=1000
사용한 언어Python 3.13
제출기록35500KB / 40ms
최고기록40ms
해결날짜2026/02/08

풀이

코드

"""Solution code for "BOJ 12355. Ocean View (Large)".

- Problem link: https://www.acmicpc.net/problem/12355
- Solution link: http://www.teferi.net/ps/problems/boj/12355

Tags: [lis]
"""

import sys
from teflib import psutils
from teflib import seqtask


@psutils.gcj_style
def main():
    N = int(sys.stdin.readline())
    h = [int(x) for x in sys.stdin.readline().split()]
    print(N - seqtask.longest_inc_subseq_length(h, strict=True))


if __name__ == '__main__':
    main()

토론

댓글을 입력하세요:
Y᠎ N G T᠎ Y
 
ps/problems/boj/12355.txt · 마지막으로 수정됨: 2026/02/08 13:55 저자 teferi