Problem C

Statement
Copy Copied
Problem C: Sorted Check
Given an integer n followed by n integers, output "YES" if the sequence is sorted in non-decreasing order, otherwise output "NO".