#P1567. 统计天数

统计天数

Description

On a hot summer day, KC is very uncomfortable. He would rather endure the cold of the Arctic than the summer in Xiamen. Recently, he started studying weather changes. He hopes to use the results of his research to predict future weather.

After much effort, he collected the highest temperatures for N(1N106)N(1 \leq N \leq 10^6) consecutive days.

Now he wants to know the length of the longest consecutive period during which the maximum temperature is strictly increasing.

Input Format

Line 1: an integer NN. 1N1061 \leq N \leq 10^6.

Line 2: NN space-separated integers, representing the maximum temperatures for NN consecutive days. 00 \leq maximum temperature 109\leq 10^9.

Output Format

1 line: an integer, the length of the longest consecutive period during which the maximum temperature is strictly increasing.

10
1 2 3 2 4 5 6 8 5 9

5

Hint

Translated by ChatGPT 5