HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginner > problem:


50126 - The Highest Average

Volume problems

• 50061 - Cinema Tickets
• 50070 - Number of Chairs
• 50078 - Placing Dominoes on Chess...
• 50079 - Fun Fair
• 50088 - ATM
• 50117 - What quadrant is it?
• 50118 - Car Parking
• 50119 - Bank Charges
• 50126 - The Highest Average
• 50127 - Welcome Andi - 2
• 50132 - Class Average
• 50145 - Close City
• 50164 - The roots of a quadratic eq...
• 50192 - Nr of Missing Guests
• 50193 - Passing the course
• 50194 - OSHEE Electric Bill
• 50217 - Exchange the Values

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.

The Student with the Highest Average

Question:
You will be given a name and 2 grades for three students. Find the student with the highest average.

Input specification
In every line, you will be given the name and two grades for three students. Every name contains only English letters and is not longer than 15 characters. The grades are between 0 and 100.

Output specification
Show the name and average of the student with the highest average. If there are two students with the same highest average show any of them.

 Sample Input I     Sample Output I   
 Ardit 80 63
 Arber 90 75
 Arlind 80 90
 Arlind 85


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

www.contester.ru