ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


51135 - Class Average 1

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50873 - Max Frequency
• 51009 - Sum of the nth row
• ECE - Question 1
• CEN - Question 1
• 51107 - Factorial
• Reflektimi i pikes
• 50972 - Division
• Question 1
• 51135 - Class Average 1
• 51136 - Class Average 2
• 51094 - Passing the course
• 51130 - Permutation of Everything
• 51069 - Last Digit of a Fibonacci Nu...
• 51073 - Campus Tours for High Sch...
• 51148 - Circles
• 51123 - Mr. Li Criteria
• 51124 - Easy Tiae words

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
bfs.

Class Average 1

Question: Given a student information: Name, Surname, Department, Quiz grade, Homework grade, Project grade, Midterm grade and Final exam grade, Show students whose average is grater then or equal to class average.

Student average is calculated using this formula: 15% of quiz +15% of homework + 20% of project + 25% of midterm + 25% of final exam.

Input specification: In the first line you will be given a number of students n (1<=n<=250) and department. Then in following n lines you will be given: Student name, surname, department, quiz grade, homework grade, project grade, midterm grade and Final exam grade.

Output specification: Show name, surname, department and average (with two digits after the floating point) of the students whose average is grater then or equal to the class average for the required department. If there is no student with the average grater then class average in that department show "0".

 

Sample Input I 

4 ECE
Dhurata Roberts BINF 52 17 60 20 4
Erind Bello ECE 85 85 49 19 3
Astrit Caushi CE 12 41 26 63 0
Asjan Glover CEN 25 3 15 25 32

Sample Output I

Erind Bello ECE 40.80

 

Sample Input II 

4 ECE
John Kamami CE 71 14 24 35 20
Selime Leshi BINF 18 87 8 47 34
Nexhip Dashballa BINF 90 2 19 20 33
Nexhip Dashballa ECE 15 2 56 36 22

Sample Output II

0


Sample Input I Explanation

Average of students:

Dhurata Roberts BINF 28.35
Erind Bello ECE 40.80
Astrit Caushi CE 28.90
Asjan Glover CEN 21.45 

Class Average is: 29.88

There is only one student from ECE department with average grater than or equal to class average. 

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

www.contester.ru