Mbpp/290

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度419 字符
模型生成的代码 (419 字符)
def max_length(lists):
    """
    Find the list of maximum length in a list of lists.
    Returns a tuple (length, list). If the input is empty, returns (0, None).
    If multiple lists have the same maximum length, the first one encountered is returned.
    """
    if not lists:
        return 0, None
    
    max_list = max(lists, key=len)  # get the list with the maximal length
    return len(max_list), max_list
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试