HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > IMPC16 Group Contests > problem:


11. 50859 - Low performance

IMPC16 Group Contests

Start: Jan.16.2016 at 10:00:00 AM
Finish: Jan.16.2016 at 02:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (3)

Contest problems

• 01. 50832 - Rock Paper Scissors Liz...
• 02. 50833 - Min of Odd Positions
• 03. 50834 - The train which leaves ...
• 11. 50859 - Low performance
• 12. 50860 - Number of Student Certi...
• 13. 50861 - The largest Student Group
• 14. 50862 - Sum of the Pairs
• 15. 50863 - Total Access Cost of a BST
• 21. 50873 - Max Frequency
• 22. 50874 - Apartment Building Adm...
• 23. 50875 - Take m-out
• 24. 50876 - He is my cousin

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