Mbpp/120

❌ 均未通过 Base: FAIL Plus: FAIL
测试评估
指标结果
Base 测试FAIL
Plus 测试FAIL
代码长度337 字符
模型生成的代码 (337 字符)
"""
Write a function to find the maximum absolute product between numbers in pairs of tuples within a given list.
assert max_product_tuple([(2, 7), (2, 6), (1, 8), (4, 9)] )==36
"""

def max_product_tuple(lst):
    """
    Returns the maximum absolute product of the two numbers in each tuple
    from the given list of 2-tuples.
    """
Base 失败测试用例
  • [[[2, 7], [2, 6], [1, 8], [4, 9]]]
Plus 失败测试用例
  • [[[-10, 20], [15, -2], [-5, 10]]]