题解 | #记负均正#
记负均正
http://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True:
try:
length = int(input())
nums = map(int, input().split())
res = []
count = 0
for i in nums:
if i < 0:
count += 1
elif i > 0:
res.append(i)
print(count, round(sum(res)/len(res), 1))
except:
break