| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71503 | 彭士宝 | 求解函数 | Python3 | Runtime Error | 4003 MS | 4188 KB | 418 | 2024-04-24 22:04:09 |
def recursive_function(x, n): # 基础情况 if n == 0: return 1 elif n == 1: return x else: # 递归情况 return x * recursive_function(x, n - 1) + (1 - x) * recursive_function(x, n - 2) # 读取输入 x, n = map(float, input().split()) # 计算函数值并保留两位小数 result = round(recursive_function(x, n), 2) # 输出结果 print(result)
Runtime Error:[ERROR] A not allowed system call. Call ID:511