题解 | #记负均正#
记负均正
http://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True: try: n,l1 = int(input),map(int,input().split()) a,b,s = 0,0,0 for i in l1: if i < 0: a += 1 elif i > 0: b += 1 s += i print(a,round(s / b,1)) except: break