题解 | #记负均正II#
记负均正II
https://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62
ans=0 l=[] while True: try: nums=int(input()) if nums<0: ans+=1 else: l.append(nums) except: break print(ans) if len(l)==0: print(0) else: print(format(float(sum(l))/float(len(l)),".1f"))