#K45987. Strictly Increasing Scores
Strictly Increasing Scores
Strictly Increasing Scores
You are given a sequence of scores from a game. Your task is to determine whether the scores are strictly increasing, that is, every score is strictly greater than the score immediately preceding it.
Formally, given an array of integers \(a_1, a_2, \ldots, a_n\), you should output yes if \(a_i < a_{i+1}\) for all \(1 \leq i < n\), and no otherwise.
Note: A sequence with a single number is considered strictly increasing.
inputFormat
The first line contains a single integer (n) representing the number of scores. The second line contains (n) space-separated integers representing the scores.
outputFormat
Print a single string: "yes" if the sequence of scores is strictly increasing, otherwise "no".## sample
4
4 5 7 10
yes