HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


022. 50366 - Student Averages (2 Grades)

Guest
• Review clarifications (2)

Volume problems

• 017. 50423 - Numbers square
• 017. 50537 - esreveR Triangle
• 018. 50344 - Profit or Loss
• 018. 50491 - Brokers
• 018. 50787 - Expected Value
• 019. 50438 - Pattern with stars
• 020. 50485 - Center of gravity of a ...
• 020. 50408 - Molecules
• 022. 50366 - Student Averages ...
• 023. 50437 - Age Labeling
• 024. 50372 - Number Quadruplets
• 025- 2013-Nov-01. 50328 - How far ...
• 026. 50399 - Mobile Base Station
• 026. 50487 - Radius of Inscribed Circle
• 027. 50548 - Albanian Airlines
• 028. 50483 - Group Total
• 030. 50584 - Total invoice amount

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.
Prepared by Ibrahim Mesecan.

Student Averages (2 Grades)

Question:
Read the name and 2 grades of n students and show the names together with the averages.

Input specification
At the beginning, you will be given a number (n), the number of students where 0 ≤ n ≤ 100. Then in the following n lines you will be given the name of a student followed by two integer numbers which are between 0 and 100.

Output specification
Show the names followed by the floating point averages.

Sample Input
6
Juliann 67 46
Lindsay 83 76
Robbyn 4 27
Samatha 26 11
Agnes 27 91
Ray 88 31
Sample Output
Juliann 56.5
Lindsay 79.5
Robbyn 15.5
Samatha 18.5
Agnes 59
Ray 59.5


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

www.contester.ru