Preparando MOJI

Maximum Increase

1000ms 262144K

Description:

You are given array consisting of n integers. Your task is to find the maximum length of an increasing subarray of the given array.

A subarray is the sequence of consecutive elements of the array. Subarray is called increasing if each element of this subarray strictly greater than previous.

Input:

The first line contains single positive integer n (1 ≤ n ≤ 105) — the number of integers.

The second line contains n positive integers a1, a2, ..., an (1 ≤ ai ≤ 109).

Output:

Print the maximum length of an increasing subarray of the given array.

Sample Input:

5
1 7 2 11 15

Sample Output:

3

Sample Input:

6
100 100 100 100 100 100

Sample Output:

1

Sample Input:

3
1 2 3

Sample Output:

3

Informação

Codeforces

Provedor Codeforces

Código CF702A

Tags

dpgreedyimplementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:08:11

Relacionados

Nada ainda