## Mock CCC '19 Contest 1 S1 - Pusheen's Report Card

View as PDF

Points: 3 (partial)
Time limit: 1.0s
Memory limit: 256M

Problem type

Pusheen recently got her report card back! Pusheen took classes last semester and wants to know her average mark. She was rather burnt out from all the critical thinking and real-time programming that she had to do, so she needs your help to figure out her average mark.

Pusheen defines her average mark to be the arithmetic mean of the marks that she received - namely, the sum of her marks divided by the number of courses she took.

#### Constraints

In tests worth 3 marks, .

In additional tests worth 5 marks, .

#### Input Specification

The first line contains a single positive integer, .

lines follow, each containing a single nonnegative integer , indicating Pusheen's mark in class .

#### Output Specification

Output, with exactly one digit after the decimal point, Pusheen's average mark.

Make sure your lines end properly with a newline character. This holds true for all problems.

#### Sample Input

2
100
0

#### Sample Output

50.0

## Comments

• Rayeless  commented on Jan. 24, 2019, 2:30 p.m.

Why can't you use DecimalFormat for this question?