题解 | #记负均正II#
记负均正II
https://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62
list1=[] sum=0 num=0 num1=0 while True: try: x=int(input()) if x>0: sum+=x num+=1 else: num1+=1 except: if num==0: print(num1) print(float(num)) else: print(num1) print(format(sum/num,"0.1f")) break