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

Разделы > Арифметика > задача:


50462 - Class Average (3 Grades)

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

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

• 50321 - Missing Number
• 50308 - IT Knowledge Seminars
• 50293 - Sum of odd numbers from ...
• 50401 - Sum of Odd Numbers
• 50365 - Sum of the numbers from a...
• 50390 - Total Salary Paid
• 50400 - nth Row rth Element of a Table
• 50292 - Average of 4 Marks
• 50462 - Class Average (3 Grades)
• 50439 - Telephone Calls
• 50436 - Pocket Money
• 50288 - Even numbers in even posit...
• 50299 - Median
• 50571 - Numrat Armstrong
• 50572 - Numrat Palindrome
• 50582 - Numri i shifrave
• 50583 - Numri ma te madhe nga 3 ...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Class Average (3 Grades)

Question:
You will be given 3 marks of n students. First calculate average of n students where student averages are rounded to the nearest integer. Then your program will calculate the class average.

Input specification
At the beginning, you will be given an integer n where 0 ≤ n ≤ 1000 Then, you will be given three integer numbers (m1, m2, m3) for n students where each of the mark is an integer between 0 and 100.

Output specification
Show one floating point number with 3 digits after the floating point.

Sample Input I   
  5
  87 87 95
  55 90 52
  52 62 51
  71 100 76
  49 93 92
Sample Input II   
  8
  47 65 92
  71 37 57
  30 98 96
  79 21 30
  94 55 65
  75 39 37
  55 90 62
  67 62 81
Sample Output I   
  74.2
Sample Output II  
  62.625


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

www.contester.ru