#K67777. Basketball Player Statistics
Basketball Player Statistics
Basketball Player Statistics
Given a list of integers representing the scores of a basketball player, your task is to calculate the highest score and the average score.
The average score should be computed using the formula \(\text{Average} = \frac{\sum_{i=1}^{n} s_i}{n}\) and printed with exactly two decimal places. The highest score is defined as \(\max(s_1, s_2, \dots, s_n)\).
Input will be provided via standard input and the output should be printed to standard output in the format:
Highest: <highest_score>, Average: <average_score>
inputFormat
The first line contains an integer N representing the number of scores.
The second line contains N space-separated integers which are the scores of the basketball player.
outputFormat
Output a single line in the format: Highest: <highest_score>, Average: <average_score>
1
25
Highest: 25, Average: 25.00