#P5978. [CEOI 2018] Global warming
[CEOI 2018] Global warming
Description
Given , you may choose any segment from to (), and add a value () to each element in this segment. Find the maximum length of a strictly increasing subsequence of the array .
Input Format
The first line contains two integers .
The second line contains integers representing to .
Output Format
Output one number, the maximum length of a strictly increasing subsequence of the array .
8 10
7 3 5 12 2 7 3 4
5
Hint
For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号