题解 | #记负均正#

记负均正

https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8

a = int(input())
b = list(map(int,input().split()))
c = []
d = []
for i in b:
    if i > 0:
        c.append(i)
    elif i < 0:
        d.append(i)

if len(c) != 0:
    print(len(d),round(sum(c)/len(c),1))
elif len(c) == 0:
    print(len(d),0.0)


全部评论

相关推荐

Java抽象带篮子:简历怎么写可以看看我发的帖子,你的第一个是实习经历吗?那怎么写的是你的第一个练手项目呢?简历写的怎么样直接投小厂面试一下就知道了
没有实习经历,还有机会进...
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
今天 14:35
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务