Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97920 谭景年 09优惠活动 Python3 Accepted 37 MS 3772 KB 237 2024-11-16 20:21:20

Tests(4/4):


Code:

s=input().split(" ") a=(s[0]) b=int(s[1]) if a=="P": print('{:.2f}'.format(b*0.7)) elif a=="G": print('{:.2f}'.format(b*0.8)) elif a=="S": print('{:.2f}'.format(b*0.9)) else: print('{:.2f}'.format(b*0.95))