#C4214. High Performing Students Evaluation
High Performing Students Evaluation
High Performing Students Evaluation
You are given a number of test cases T. For each test case, the first number represents N, the number of marks obtained by a student, followed by N integer marks. Your task is to determine whether the student is high-performing by calculating the average of the marks and comparing it to 75.
Formally, let the marks be \(M_1, M_2, \ldots, M_N\). Compute the average as \(\frac{\sum_{i=1}^{N} M_i}{N}\). If the average is at least 75, output YES
; otherwise, output NO
.
inputFormat
The input is given via stdin and has the following format:
T N1 M1 M2 ... MN1 N2 M1 M2 ... MN2 ... (T test cases in total)
Here, the first line contains an integer T, the number of test cases. For each test case, the first integer is N, the number of marks, followed by N integers representing the marks.
outputFormat
For each test case, output a single line containing YES
if the average mark is greater than or equal to 75, and NO
otherwise. The output should be written to stdout.
3
5 80 90 70 60 85
4 75 75 70 80
3 50 60 65
YES
YES
NO
</p>