HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50859 - Low performance

Guest
• Review clarifications (3)

Section problems

• 50861 - The largest Student Group
• 50815 - Breaking the Bunker
• 50437 - Age Labeling
• 50500 - Find Student
• 50786 - Top Question
• 50788 - Eight Puzzle
• 50504 - School contest
• 50787 - Expected Value
• 50859 - Low performance
• 50785 - Swimming Contest
• 50826 - Olive Containers
• 50866 - Buy the cheapest
• 50999 - Overlapping Trips
• 50507 - Sequential Numbers
• 50501 - The Highest Average
• 50434 - Row Min Subtraction
• 50980 - The smallest rectangle

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.

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