题解 | #记负均正#
记负均正
http://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True: try: num = int(input()) li = list(map(lambda x:int(x), input().split())) except EOFError: break print(len(list(filter(lambda x:x<0, li))), end=" ") postives = list(filter(lambda x:x>0, li)) print(round(sum(postives)/len(postives),1) if postives else 0.0)