Given an array of N elements. Remove those elements, all elements less than the previous one
The first line contains the number N (1<=N<=15) - the number of elements of a one-dimensional array
The second line contains N integers (numbers are entered from the keyboard)
Sample Input and Output
Test No. |
Input data |
Imprint |
1 |
5
1 0 2 0 0
|
1 2 |
2 |
6
4 0 1 4 5 4
|
4 4 5 |