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 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
      上传者