返回列表 發帖
  1. from decimal import Decimal, ROUND_HALF_UP

  2. def compute(float_list):
  3.     return min(float_list)
  4. float_list = []
  5. for i in range(3):
  6.     n = int(input())
  7.     float_list.append(n)
  8. for i in range(3):
  9.     n = int(input())
  10.     float_list[i] /= n
  11. f = compute(float_list)
  12. f_round = Decimal(str(f)).quantize(Decimal('0.000'), rounding = ROUND_HALF_UP)
  13. print(f_round)
複製代碼

TOP

返回列表