#C8039. Highly Rated Courses Filter
Highly Rated Courses Filter
Highly Rated Courses Filter
You are given a number of courses and their corresponding ratings. For each course, compute its average rating using the formula \(\text{average} = \frac{\sum ratings}{\text{number of ratings}}\). A course is considered highly rated if its average rating is at least 4.0.
Your task is to output the indices (0-indexed) of all highly rated courses in increasing order. If no course qualifies, print an empty line.
Input format: The first line contains an integer \(N\) representing the number of courses. Each of the next \(N\) lines contains a space-separated list of integers denoting the ratings for that course.
Output format: Print a single line containing the indices of the courses that are highly rated, separated by a single space. If there is no such course, output an empty line.
inputFormat
First line: an integer \(N\) representing the number of courses.
Next \(N\) lines: each line contains a list of integers which are the ratings for a course.
outputFormat
Output a single line containing the 0-indexed course indices that have an average rating of at least 4.0, separated by spaces. If no course qualifies, output an empty line.
## sample1
4 4 4 4
0
</p>