Time Limit: 2 Sec Memory Limit: 128 MB
There are
Please find the max length of a continuous segment
The first line contains an integer
Print the max length of such segment.
5
2 0 -1 -4 2
3
In the sample, the longest positive segment is
Time Limit: 2 Sec Memory Limit: 128 MB
There are
Please find the max length of a continuous segment
The first line contains an integer
Print the max length of such segment.
5
2 0 -1 -4 2
3
In the sample, the longest positive segment is