Mbpp/805

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度336 字符
模型生成的代码 (336 字符)
def max_sum_list(lists):
    """
    Returns the list in a list of lists whose sum of elements is the highest.
    
    If the input list is empty, returns an empty list.
    If multiple sublists have the same maximal sum, the first one encountered is returned.
    """
    if not lists:
        return []
    return max(lists, key=sum)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试