#K89992. Taco Score Improvement
Taco Score Improvement
Taco Score Improvement
You are given a series of scores representing a participant's performance on a set of problems. For each new score (starting from the second score), determine whether it is strictly greater than all previous scores.
Formally, given an integer \(N\) and a list of scores \(a_1, a_2, \ldots, a_N\), for each \(i\) from 2 to \(N\), print "Yes" if \(a_i > \max\{a_1, a_2, \ldots, a_{i-1}\}\), otherwise print "No".
Note that the first score is used only as the reference for the subsequent scores and does not have an output.
Example: For \(N=6\) and scores [30, 60, 55, 70, 65, 85], the output should be:
Yes No Yes No Yes
inputFormat
The input is given via standard input and consists of two lines.
- The first line contains an integer \(N\) (\(2 \leq N \leq 10^5\)), representing the number of scores.
- The second line contains \(N\) space-separated integers representing the scores.
outputFormat
Print a single line containing \(N-1\) space-separated strings, each being either "Yes" or "No", corresponding to whether each score (starting from the second one) is strictly greater than all previous scores.
## sample6
30 60 55 70 65 85
Yes No Yes No Yes