import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
dp = [1] * N
for i in range(1, N):
for j in range(i):
if A[i] > A[j]:
dp[i] = max(dp[i], dp[j]+1)
print(max(dp))
'Algorithm > Python' 카테고리의 다른 글
[Algorithm|Python] 백준 2225번 (0) | 2025.02.21 |
---|---|
[Algorithm|Python] 백준 9251번 (0) | 2025.02.20 |
[Python|Algorithm] 백준 1003번 파이썬 (0) | 2025.02.18 |
[Algorithm|Python] 백준 19598번 / 99클럽 20일차 TIL (0) | 2025.02.15 |
[Algorithm|Python] 백준 1946번 / 99클럽 19일차 TIL (0) | 2025.02.14 |