← Back to List

15096번: Batter Up ↗

Solutions

Python 3
137 B | 137 chars
cnt = 0
s = 0
n =input()
L = list(map(int,input().split()))
for i in L:
    if i >=0:
        cnt+=1
        s+=i
print("%.7f" % (s/cnt))