题解 | 小红比身高

小红比身高

https://www.nowcoder.com/practice/4722fa5316a543b8b4e7c0d1bdf64942

n1 = list(map(int,input().split(" ")))
py = list(map(int,input().split(" ")))
steps = list(map(int,input().split(" ")))
highst = list(map(int,input().split(" ")))
n = n1[0]
m = n1[1]
h = n1[2] + max(highst)
ans = []
a=0
for num in range(len(py)):
    hight = py[num] + highst[steps[num]-1]
    ans.append(hight)
for i in ans:
    if i < h:
        a +=1
print(a)

全部评论

相关推荐

淬月星辉:专利是什么?至少描述一下吧,然后把什么计算机二级、普通话这种拉低格调的证书删掉,不然hr以为你没东西写
点赞 评论 收藏
分享
10-13 13:49
南京大学 财务
饿魔:笑死我了,你简直是个天才
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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