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

中彩票的的概率

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

num_all = input().split()
ratio = input().split()

niu = input().split()

dt1 = {}
j = 0
for i in num_all:
    
    dt1[i] = ratio[j]
    j += 1
mult = []
for i in niu:
    mult.append(dt1[i])

# print(mult)
result = float(mult[0])*float(mult[1])*float(mult[2])
print('%.3f' %result)

全部评论

相关推荐

07-10 14:08
已编辑
江西农业大学 Java
拒绝无效加班的小学生...:期望3k吗?java这辈子有了
点赞 评论 收藏
分享
仁者伍敌:牛子这些人还会点一个自动回复,boss都不带回复的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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