Mbpp/614

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度380 字符
模型生成的代码 (380 字符)
def cummulative_sum(tuple_list):
    """
    Return the sum of all numbers inside the tuples of the given list.

    Args:
        tuple_list (list of tuple): A list where each element is a tuple of numbers.

    Returns:
        int or float: The total sum of all elements in all tuples.
    """
    total = 0
    for tup in tuple_list:
        total += sum(tup)
    return total
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试