Count Above Average

Easy · rating 1000 · Arrays, Math

The first line has n. The second line has n integers. Print how many are strictly greater than the arithmetic mean of the list.

Constraints: 1 ≤ n ≤ 105

Related problems

Open Count Above Average in Code Arena →