Mbpp/578

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度459 字符
模型生成的代码 (459 字符)
def interleave_lists(list1, list2, list3):
    """
    Interleaves three lists of the same length into a single flat list.
    
    Args:
        list1, list2, list3: lists of equal length.
    
    Returns:
        A new list with elements taken one by one from each input list in order.
    """
    # Using zip to group corresponding elements and flattening with a list comprehension
    return [item for group in zip(list1, list2, list3) for item in group]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试