题解 | #记负均正II#
记负均正II
http://www.nowcoder.com/practice/64f6f222499c4c94b338e588592b6a62
nums=[] while True: try: nums.append(int(input())) except: break count1,count2,plus=0,0,0 for i in nums: if i<0: count1+=1 if i>0: count2+=1 plus+=i print (count1) if count2==0: print(0.0) else: print(round(plus/count2,1))