题解 | #记负均正#
记负均正
https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
n=int(input()) nums=list(map(int,input().split())) #print(nums) neg_n=0 pos=[] for i in nums: if i<0: neg_n += 1 elif i>0: pos.append(i) if len(pos)==0: print(neg_n,0.0) else: print(neg_n,round(sum(pos)/len(pos),1))