题解 | #记负均正#
记负均正
http://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True:
try:
n = int(input())
s = list(map(int,input().split()))
k = 0
k1 = 0
opt = 0
for i in s:
if i > 0:
k1 += 1
opt += i
if i < 0:
k += 1
if opt != 0:
opt = round(float(opt/k1)*10)/10
if opt == 0:
opt = 0.0
print(str(k) + ' ' + str(opt))
except:
break