题解 | #记负均正#
记负均正
https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
a = int(input()) b, *args = map(int, input().split()) list1 = [b, *args] list2 = [] list3 = [] for i in list1: if i < 0: list2.append(i) cc = len(list2) for j in list1: if j > 0: list3.append(j) ss = sum(list3) ll = len(list3) if ss !=0: print(cc,round(ss/ll,1)) else: print(cc,0.0)