- Time limit: 1.00 s
- Memory limit: 512 MB
On each round, you go through the array from left to right and collect as many numbers as possible. What will be the total number of rounds?
The first line has an integer $n$: the array size.
The next line has $n$ integers $x_1,x_2,\dots,x_n$: the numbers in the array.
Print one integer: the number of rounds.
- $1 \le n \le 2 \cdot 10^5$
4 2 1 5 3