python 50分求助
查看原帖
python 50分求助
1444697
MRZ000楼主2024/12/2 23:28
x = int(input())
str1 = input()
if "B" in str1 and "C" not in str1:
    x *= 0.8
elif "C" in str1 and "B" not in str1:
    x *= 0.7
elif "B" in str1 and "C"  in str1:
    x *= 0.6

print("%d"%x)
2024/12/2 23:28
加载中...