改了一下下:while True: try: n=int(input()) m=list(map(int,input().split())) a,b=[],[] if m.count(0)==len(m): print(0,0.0) else: for i in m: if i >0: a.append(i) elif i <0: b.append(i) print(len(b),round(sum(a)/len(a),1)) except: break
点赞

相关推荐

点赞 评论 收藏
分享
不想上班的肱二头肌很...:简历一页,项目突出重点,自我评价可以删掉的
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务