Test Median

View as PDF

Submit solution

Points: 5
Time limit: 1.0s
Memory limit: 16M

Problem type
Peg Test - March 9

Bobette was walking home one day, when she slipped on a banana peel. Of course, the papers that she was carrying flew everywhere. They were actually the test scores for her PEG students, arranged from highest to lowest, so that she would be able to find the median easily. Help Bobette calculate the median on the test (to one decimal place), given T (0 < T \le 10), the number of students who wrote the test, followed by N lines, which list their percentage scores.

Input Specification

Input starts with T, followed by the scores for T tests on separate lines.

Output Specification

Output the median score on the tests.

Sample Input

4
79
95
24
78

Sample Output

The median on the test is 78.5

Comments

There are no comments at the moment.