CF702A.Maximum Increase

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Maximum Increase

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, ..., a**n (1 ≤ a**i ≤ 109).

Output

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

Samples

5
1 7 2 11 15
3
6
100 100 100 100 100 100
1
3
1 2 3
3

在线编程 IDE

建议全屏模式获得最佳体验