Submit | All submissions | Best solutions | Back to list |
EIINCRDES - Order of the sequence |
Given an array of length n. Check if the array is strictly increasing or strictly decreasing. An array, named A is strictly increasing if A[i] > A[i-1] for every i ≥ 1
Input
The first line contains the length of the array n (1< n ≤ 105)
The second line contains n integers which are elements of the array, respectively.
Output
If the given array is strictly increasing, output “increasing”.
If the given array is strictly decreasing, output “decreasing”, otherwise output “none”.
Sample
Input |
Output |
4 1 1 1 1 |
none |
3 1 2 2 |
none |
Added by: | Ha Minh Ngoc |
Date: | 2019-12-15 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET |