题解 | #记负均正#
记负均正
https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8
while True: try: n=int(input()) lst=list(map(int,input().split())) fs=0 zs=0 zero=0 sum=0 for a in lst: if a==0: zero+=1 elif a<0: fs+=1 elif a>0: zs+=1 sum+=a if zs==0: print(fs,0.0) else: print(fs,format(sum/zs,'.1f')) except: break