题解 | 讨厌鬼进货

讨厌鬼进货

https://www.nowcoder.com/practice/be73fed67d1b4bceab9e05959d295e49

s = list(map(int,input().split(" ")))
n = s[0]
cost1 = s[1]
cost = 0
mark1 = list(map(int,input().split(" ")))
mark2 = list(map(int,input().split(" ")))
for i in range(n):
    c = min(mark1[i],mark2[i])
    cost+=c
ans = min(cost1,cost)
print(ans)

全部评论

相关推荐

不愿透露姓名的神秘牛友
05-01 13:13
ecece:这么明目张胆虚报就业率啊
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务