Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
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
Sample Input
4
1 1 1 1
Sample Output
none
Sample Input
3
1 2 2
Sample Output
none
Bình luận