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

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


50859 - Low performance

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

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

• 50815 - Breaking the Bunker
• 50899 - How Many Years
• 50806 - TVSH
• 50820 - Post Office
• 50810 - Print Office
• 50952 - Derby Tirana
• 50807 - Euro to Leke
• 50871 - Harmonic Mean
• 50859 - Low performance
• 50508 - The Biggest Area
• 50528 - Rock-Scissors-Paper
• 50744 - The Smallest Perimeter
• 50808 - Total Distance Traveled
• 50814 - Buying Books from Internet
• 50812 - Total Discount for the clients
• 50832 - Rock Paper Scissors Lizard ...
• 51078 - Max trade

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

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

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

Low performance

Question: You are given 2 Quizzes, 2 exams and the final exam results of n students. Find and show the name of the student with the lowest average. And also show the number of failing students. A student fails, if his integer average is below 60.

Input specification
You will be first given a number (n) the number of students. Then in the following n lines you will be given the information for n students where 0 ≤ n ≤ 2000. Every line contains:

  • Name and surname: at most 30 chars space separated and contains only English letters.
  • 5 integers: the grades are between 0 and 100
    • two quiz results: 5% of each quiz
    • two exam results: 25% of each exam
    • and the final exam result: 40% of the final exam

Output specification:
Show the number of failing students. And then, show name and surname of the student with the lowest grade. Note: Round student averages to the nearest integer.

Sample Input I
5
Anastas Hasanaj 70 15 64 89 87
Anica Omeri 10 12 34 28 92
Xhulia Hanku 44 89 22 40 65
Fatjona Davis 10 52 89 3 40
George Dulaj 82 57 50 37 80
Sample Output I
3 Fatjona Davis

Explanation: Here are student averages:

Name and SurnameStudent average
Anastas Hasanaj77
Anica Omeri53
Xhulia Hanku48
Fatjona Davis42
George Dulaj61



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

www.contester.ru