Floor of Average

Easy · rating 900 · Arrays, Math

The first line has n. The second line has n integers. Print the floor of their arithmetic mean (integer division of the sum by n).

Constraints: 1 ≤ n ≤ 105, values non-negative

Related problems

Open Floor of Average in Code Arena →