Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
322638 詹建泽榆 【C6-4】求2+2*2+2*2*2+…+2*2*2*….*2 Python3 解答错误 0 41 MS 3748 KB 154 2025-05-17 10:21:24

Tests(0/1):


def calculate_series_list(n): return sum(2**i for i in range(1, n+1)) # 示例 n = 5 print(f"列表推导式结果: {calculate_series_list(n)}")


测评信息: