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

Сборники > Фёдор Меньшиков. Тренировки > задача:


070. 50465 - How many students have passed?

Гость
• Обсуждение задачи (1)

Задачи сборника

• 040. 50335 - Five Math Operators
• 044. 50597 - Vizatojme Diamante
• 045. 50462 - Class Average (3 Gra...
• 050. 50450 - Last Appereance of a ...
• 058. 50574 - Numrat Trekendesh
• 060. 50362 - Pythagorean Numbers
• 060. s
• 065. 50394 - Water Bills
• 070. 50465 - How many student...
• 072. 50473 - Counting Circles Positions
• 074. 50396 - Cinema Tickets - 1
• 075. 50363 - Class GPA Average
• 080. 50248 - Power of two
• 085. 50333 - Series of Squares
• 090. 50456 - nth Digit of a Number
• 095. 50651 - Largest power of two
• 110. 50288 - Even numbers in even...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan. Сложность Бета

How many students have passed?

Your professor wants to read and calculate all student results automatically, now. He has 3 exam results (grade1, grade2, grade3) and according the averages of these grades, he wants to find out how many students have passed. A student fails if his/her average is less than 59.5; passes otherwise.

Question:
Write a program that is going to read 3 marks of n students and then it will find out how many students have passed?

Input specification
You will be given a number integer (n) where n is between 0 and 10000. Then, the following n lines will contain three integer numbers where each of them can be between 0 and 100.

Output specification
Find and show the number of passing students.

Sample Input I
  5
  68 36 52
  62 89 84
  89 99 65
  41 72 61
  58 75 46
Sample Input II
  10
  47 93 92
  43 47 81
  97 68 48
  62 86 50
  96 85 74
  50 60 70
  76 67 76
  82 52 97
  85 84 48
  61 64 53
Sample Output I
  3
Sample Output II
  8


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

www.contester.ru