如何使用python解决这个数学问题?

2024-04-29 05:34:29 发布

您现在位置:Python中文网/ 问答频道 /正文

有人问我一个问题:

Form a given number using only 4s(using the least number of 4s) using only the following operations:

  1. Addition
  2. Subtraction
  3. Multiplication
  4. Division
  5. Power(^)
  6. Square root
  7. Factorial
  8. Greatest integer function

For example, 3 = 4-(4/4)

我是python的新手。我如何处理这个问题


Tags: oftheformnumberonlygivendivisionoperations