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

View as PDF

Submit solution

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

Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

Pusheen recently got her report card back! Pusheen took N 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.


N \in \{1, 2, 5, 10\}

0 \le a_i \le 100

In tests worth 3 marks, N = 1.

In additional tests worth 5 marks, N = 10.

Input Specification

The first line contains a single positive integer, N.

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

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


Sample Output



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

    Why can't you use DecimalFormat for this question?