#C6046. All Students Passed
All Students Passed
All Students Passed
Given a list of student grades, determine if all students have an average score of at least 70. Each student is evaluated by calculating the average of their scores. If every student meets or exceeds an average score of \(70\), output True
; otherwise, output False
. In case there are no students, consider the condition as satisfied and output True
.
The input is read from standard input (stdin
) and the output is written to standard output (stdout
).
inputFormat
The first line contains a single integer n
representing the number of students. If n
is 0, there are no student records.
For the next n
lines, each line represents one student. The line starts with an integer k
indicating the number of grades for that student, followed by k
integers which are the grades of that student. All numbers are separated by spaces.
Examples:
3 3 80 90 100 3 70 60 80 3 90 85 95
outputFormat
Output a single line with either True
if every student has an average grade of at least 70, or False
otherwise.
Note: For an input with 0 students, output True
.
3
3 80 90 100
3 70 60 80
3 90 85 95
True