题解 | #记负均正II#
记负均正II
https://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62
p = [] n = [] while True: try: num = int(input()) if num < 0: n.append(num) else: p.append(num) except: print(len(n)) if len(p) == 0: print(0.0) else: print('%.1f'%(sum(p)/len(p))) break