题解 | #记负均正#
记负均正
http://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True: try: n = int(input()) list1 = list(map(int, input().split())) m =0 sum = 0 for i in range(n): if list1[i] <0: m +=1 elif list1[i] >0: sum +=list1[i] else: n -=1 print(m,round(sum/(n-m),1)) except: break