- 辣椒水
L001P862. 辣椒水你们是怎么做的?
- 2024-12-29 11:40:31 @
a =int(input())
if (a < 10):
c = 0
elif (a > 9 and a < 31):
c = (a * 100)
elif (a > 30 and a < 71):
c = (a * 500)
else:
c = (a * 3000)
print(c)
3 条评论
-
张柏然 @ 2025-6-17 20:29:55
spiciness = int(input()) if spiciness < 10: water = 0 elif spiciness <= 30: water = spiciness * 100 elif spiciness <= 70: water = spiciness * 500 else: water = spiciness * 3000 print(water)
-
2024-12-29 14:41:13@
-
2024-12-29 11:41:50@
a =int(input()) if (a < 10): c = 0 elif (a > 9 and a < 31): c = (a * 100) elif (a > 30 and a < 71): c = (a * 500) else: c = (a * 3000) print(c)
👍 2❤️ 2🍋 1
- 1
信息
- ID
- 177
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 9
- 标签
- 递交数
- 10
- 已通过
- 6
- 上传者