Mbpp/259

❌ 均未通过 Base: FAIL Plus: FAIL
测试评估
指标结果
Base 测试FAIL
Plus 测试FAIL
代码长度390 字符
模型生成的代码 (390 字符)
def maximize_elements(tup1, tup2):
    """
    Given two tuples of tuples of equal length, return a new tuple of tuples
    where each inner tuple contains the element-wise maximum of the corresponding
    inner tuples from the inputs.

    Example:
    >>> maximize_elements(((1, 3), (4, 5), (2, 9), (1, 10)), ((6, 7), (3, 9), (1, 1), (7, 3)))
    ((6, 7), (4, 9), (2, 9), (7, 10))
    """
Base 失败测试用例
  • [[[1, 3], [4, 5], [2, 9], [1, 10]], [[6, 7], [3, 9], [1, 1], [7, 3]]]
Plus 失败测试用例
  • [[[1, 2], [3, 4], [5, 6], [7, 8]], [[8, 7], [6, 5], [4, 3], [2, 1]]]