HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


053. 50501 - The Highest Average

Guest
• Review clarifications (4)

Volume problems

• 034. 50502 - Welcome Andi - 1
• 040. 50879 - Passed or Failed
• 040. Problem 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Body Mass Index Calc...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Max of 3 numbers
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 065. 50436 - Pocket Money
• 068. 50581 - The roots of a quadrati...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades

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