有人问我一个问题:
Form a given number using only 4s(using the least number of 4s) using only the following operations:
- Addition
- Subtraction
- Multiplication
- Division
- Power(^)
- Square root
- Factorial
- Greatest integer function
For example, 3 = 4-(4/4)
我是python的新手。我如何处理这个问题
Tags:
您必须使用
math
库。 代码:输出:
注意:python中的强大功能是
**
相关问题 更多 >
编程相关推荐