题解 | #记负均正II#
记负均正II
http://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62
# def jug(n): # if n < 0: # return True import sys s = 0 l = [] for n in sys.stdin: n=int(n) if n<0: s+=1 else: l.append(n) print(s) if l: print("%.1f"%(sum(l)/len(l))) else: print("0.0")