Set 104Question 51

Lamia's Longest Growth Streak

HardWritten in CMust finish in 3 seconds

Lamia is analyzing a growth metric collected at a campus canteen and wants the length of the longest strictly increasing streak (not necessarily consecutive days).

What your program reads

Line1: N. Line2: N integers.

What your program prints

Length of the LIS.

Limits

1 ≤ N ≤ 10^5

Example input

6
5 1 3 6 2 8

Expected output

4
main.c

Your work is saved in this browser as you type.

Loading editor…
Input for Run

Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.

Shortcut: Ctrl + Enter sends it to the judge.

Lamia's Longest Growth Streak · DIU ContestHub