题解 | #记负均正#
记负均正
https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
n=int(input()) l=list(map(int,input().split())) cou=0 res=[] for i in l: if i<0: cou+=1 if i>0: res.append(i) if res: a=sum(res)/len(res) else: a=0.0 print(cou,'%.1f'%a) #注意:平均数保留1位小数