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

Турниры > IMPC - 2013-2014 > задача:


2013-04-30. 50337 - Exam Averages

IMPC - 2013-2014

Старт: 16.мар.2013 в 12:00:00
Финиш: 16.мар.2013 в 17:00:00
Турнир завершён!
• Турнирная таблица

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

Задачи турнира

• 14-07-30. 50385 - The 3n + 1 problem
• 14-07-50. 50367 - Bar Codes
• 2013-03-10. 50579 - Numrat pentag...
• 2013-03-20. 50589 - Numri i vezeve...
• 2013-03-30. 50559 - Faktoret e thje...
• 2013-03-40. 50685 - Perdorimi i dh...
• 2013-04-10. 50335 - Five Math Ope...
• 2013-04-100. 50323 - Filtering Cont...
• 2013-04-30. 50337 - Exam Ave...
• 2013-04-40. 50338 - Convert Into ...
• 2013-04-50. 50774 - Hot Potato
• 2013-04-70. 50296 - Total Discount...
• 2013-04-80. 50343 - The number of...
• 2013-04-90. 50332 - Variance of a ...
• 2013-05-10. 50552 - Kepuce te perd...
• 2013-05-30. 50580 - Sa dite kane ka...
• 2013-05-40. 50553 - I pjestueshem...

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

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

Лимит времени 4000/7000/7000/7000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared By Ibrahim Mesecan.

Exam Averages

Mr. Hoxha works as assistant director at South Tirana High School. He stores all exams results for his responsible classes in a file. Time to time, he wants to see these exam averages. Write a program that is going to read all data and then calculate and show exam averages.

Input specification
There will be n students and m exams where 1 ≤ n ≤ 10000 and 1 ≤ m ≤ 50. The following n lines contain m integer exam marks for students. Every mark can be an integer 0 ≤ m ≤ 100. Any mark between 1 and 100 is a grade what student has taken from that exam. And, 0 means the student hasn't taken the exam because of a problem, and thus, it will not be count in the exam average.

Output specification
Show m (space separated) double precision numbers that represent exam averages.

      

  Sample Input:
  3 4
  0  0 100 10
  77 0 1 85
  30 80 100 10  

  Sample Output:
  53.5 80 67 35   

Output explanation

      
  Student Nr. Exam 1 Exam 2 Exam 3 Exam 4
1
0
0
100
10
2
77
0
1
85
3
30
80
100
10
Exam Averages
53.5
80
67
35


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

www.contester.ru