题解 | #中彩票的的概率#

中彩票的的概率

https://www.nowcoder.com/practice/531e409e1b564cfbbb275c6a8d3a4b45

list1=list(input().split())
list2=list(map(float, input().split()))

zipped=zip(list1,list2)
zipped_dict=dict(zipped)

buy=list(input().split())

p=1
for i in buy:
    p*=zipped_dict[i]
print(round(p,3))

全部评论

相关推荐

Gaynes:查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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