游客 Signup | Login
中文 | En

2603 - 判断升序

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

实现public static boolean isSorted(int[] table)

判断整数数组元素是否已经按升序排序。

Input

一列数,需要判断的数组元素。

Output

如果已经排序输出YES

如果没有排序输出NO

Examples

Input Format

1
2
3
4
5
6

Output Format

YES