HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > CEN_114 Midterm A > problem:


14. 51094 - Passing the course

CEN_114 Midterm A

Start: May.14.2020 at 12:00:01 AM
Finish: May.31.2020 at 11:55:59 PM
The contest is finished!
• Contest scoreboard

Contest problems

• 1. 50467 - Random Numbers
• 10. 51093 - rgb2gray
• 11. 50410 - Zero Padding
• 12. 50470 - Close Pairs - Revised
• 13. 50735 - Top M Products
• 14. 51094 - Passing the course
• 15. 50804 - Marathon
• 3. 50390 - Total Salary Paid
• 4. 50528 - Rock-Scissors-Paper
• 5. 51087 - Are they the same?
• 6. 51092 - Even and Odd
• 7. 50449 - The biggest result
• 8. 51146 - Popular Baby Names
• 9. 50499 - Table to Row

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
bfs.

Passing the Course

Question: Write a program that shows student names who have passed the course

Input specification: In the first line you will be given three integer numbers,  number of students 1<=n<=400, number of grades 1<=m<=20 and an integer minimum average (1<=avg<=100 )  to pass the course

In following n lines you will have student name and m grades for each student.

Output specification: Show all student names who have passed the course.

Sample Input I 

10 10 57
AMELIA 77 70 51 42 12 84 16 73 43 73
OLIVIA 46 87 44 63 87 10 76 84 100 94
EMILY 97 16 72 100 23 19 24 40 89 7
AVA 62 90 35 16 0 61 1 98 98 66
ISLA 36 22 83 46 2 2 77 6 41 1
JESSICA 97 78 81 87 37 11 49 70 47 90
POPPY 65 85 12 82 89 94 71 41 91 89
ISABELLA 72 95 12 7 91 64 8 11 98 55
SOPHIE 49 72 33 63 14 90 15 25 65 30
MIA 68 85 60 35 46 37 0 62 64 45

Sample Output I

OLIVIA
JESSICA
POPPY

  Sample Input I Explanation

 The average of each student is:
AMELIA 54.10
OLIVIA 69.10
EMILY 48.70
AVA 52.70
ISLA 31.60
JESSICA 64.70
POPPY 71.90
ISABELLA 51.30
SOPHIE 45.60
MIA 50.20
 
From these only three students averages are greater than or eqaul to 57:

OLIVIA 69.10
JESSICA 64.70
POPPY 71.90

Для отправки решений необходимо выполнить вход.

www.contester.ru