题目发一下
x = int(input()) p = 0 if x < 20: p = 12 + 2 * (x-1) elif 20 <= x < 60: p = 39 + 1.9 * (x-20) else: p = 115 + 1.3 * (x-60) print(int(p+0.5))
有用记得点击一下采纳谢谢