Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Decent Arrays

Limits 1s, 512 MB

Given N numbers determine if they are in ascending order.

Input

The first line of the input will contain N (0 < N < 100).

The following line will contain N integers, each between 1 and 1000.

Output

Print “Yes” if the numbers were in ascending order, otherwise “No”.

Sample

InputOutput
3
1 2 3
Yes

Discussion

Statistics


90% Solution Ratio

showmic96Earliest, Jan '19

showmic96Fastest, 0.0s

ReduancsLightest, 0 B

saitotaShortest, 43B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.