HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


045. 50462 - Class Average (3 Grades)

Guest
• Review clarifications (3)

Volume problems

• 026. 50487 - Radius of Inscribed Circle
• 027. 50548 - Albanian Airlines
• 028. 50483 - Group Total
• 030. 50584 - Total invoice amount
• 033. 50588 - Processing the list of n...
• 035. 50573 - Count and Sum
• 040. 50335 - Five Math Operators
• 044. 50597 - Drawing Diamonds
• 045. 50462 - Class Average (3 G...
• 050. 50450 - Last Appereance of a ...
• 058. 50574 - Triangular Numbers
• 060. 50362 - Pythagorean Numbers
• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...
• 072. 50473 - Counting Circles Positions
• 074. 50396 - Cinema Tickets - 1

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.
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