Logo
(追記) (追記ここまで)

30216번 - Increasing Sublist 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
5 초 (추가 시간 없음) 1024 MB42923622456.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.

제한

예제 입력 1

6
5 7 2 4 6 3

예제 출력 1

3

예제 입력 2

15
10 70 80 5 5 5 15 20 30 40 60 9 8 70 80

예제 출력 2

6

힌트

출처

University > University of Central Florida > 2023 Local Programming Contest (Qualifying Round) 3번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /