#C3486. Count Eligible Students for Scholarship
Count Eligible Students for Scholarship
Count Eligible Students for Scholarship
The university offers scholarships to students who meet the following eligibility criteria:
1. The student's GPA must be at least (3.5).
2. The student must have completed at least (100) hours of volunteer work.
3. The student must have at least one recommendation letter from a teacher.
Your task is to count the number of students who are eligible for the scholarship based on the provided data.
inputFormat
Input is provided via standard input (stdin). The first line contains an integer (N) representing the number of students. Each of the following (N) lines contains information for one student in the following format:
name gpa volunteer_hours rec_count [recommendation1 recommendation2 ... recommendation_rec_count]
where:
- name: a string without spaces
- gpa: a floating-point number
- volunteer_hours: an integer
- rec_count: an integer indicating the number of recommendation letters, followed by that many recommendation strings
outputFormat
Output a single integer to standard output (stdout) which represents the number of eligible students.## sample
0
0
</p>