| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 5 초 (추가 시간 없음) | 1024 MB | 429 | 236 | 224 | 56.709% |
Given a list of numbers, we define a sublist as one or more consecutive elements in the list. An increasing sublist is when the consecutive elements are in strictly increasing order, i.e., each element is greater than the element to its left in the sublist (except the first element in the sublist which does not have an element to its left).
Given a list, find the length (number of elements) of the longest increasing sublist, i.e., the length of the sublist with the most number of elements.
The first input line contains an integer, n (1 ≤ n ≤ 30), indicating the number of elements in the list. The next input line provides the n elements in the list. Assume each element is between 1 and 100, inclusive.
Print the length (number of elements) of the longest increasing sublist.
6 5 7 2 4 6 3
3
15 10 70 80 5 5 5 15 20 30 40 60 9 8 70 80
6