Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71505 彭士宝 求解函数 Python3 Accepted 35 MS 4356 KB 179 2024-04-24 22:05:01

Tests(10/10):


Code:

def f(x, n): if n == 0: return x else: return x / (n + f(x, n-1)) a, b = list(map(int, input().split())) result = f(a, b) print("%.2f" % result)