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

Сборники > Beginners > задача:


120. 50511 - Class Average

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

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

• 062. 50402 - Hello World!
• 063. Cifti me i afert
• 065. 50436 - Pocket Money
• 068. 50581 - Rrenjet e Ekuacionit K...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair
• 150. 50500 - Find Student
• 222. 50302 - Paper Scissors Rock
• 260. 50460 - Numrin e Mesem

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

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

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

Class Average

Question: Prof. Alban Azizaj is giving lesson to two classes. He has 2 students in one class and three students in the other class. Read the student information and find the class with the highest average.

Input specification
You will be given five lines of information. In every line, you will have class name, student name, student surname, and student grade. Where class name is at most 3 characters containing only English letters or digit from 0 to 9. Name and surname are at most 15 characters containing only English letters. Student grade is an integer between 1 and 100.

Output specification
Show the class name and average (with 2 digits precision) which has the highest average.

 Sample Input I     Sample Output I   
 10A Andi Visari 80
 10A Evis Ajazi 67
 11A Genti Agolli 92
 10A Endri Drita 47
 11A Erion Shehu 90
 11A 91


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

www.contester.ru