#CCBCHBAHAI0000066. Kiểm tra mảng tăng nghiêm ngặt (Check a Strictly Increasing Array)
Kiểm tra mảng tăng nghiêm ngặt (Check a Strictly Increasing Array)
Check a Strictly Increasing Array (Kiểm tra mảng tăng nghiêm ngặt)
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem
Given , the array is strictly increasing if
Unlike a nondecreasing array, equal adjacent values violate the condition. Determine whether the array is strictly increasing.
Input
The first line contains . The second line contains integers .
Output
Print YES if the array is strictly increasing; otherwise print NO.
Subtask
Subtask 1 (20 points): , .
Subtask 2 (30 points): , .
Subtask 3 (50 points): , .
Example
Input
5
-2 0 3 8 11
Output
YES
Explanation
The sample follows the mathematical definition above.