Mbpp/804

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度338 字符
模型生成的代码 (338 字符)
def is_product_even(numbers):
    """
    Check if the product of numbers in a list is even.
    
    Args:
        numbers (list of int): A list of integers.
    
    Returns:
        bool: True if the product is even, False otherwise.
    """
    # If any number is even, the product is even.
    return any(x % 2 == 0 for x in numbers)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试