Mbpp/780

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度403 字符
模型生成的代码 (403 字符)
import itertools
def find_combinations(tuples):
    """
    Finds all element-wise sums of pairs of tuples from the input list.
    The pairs are all combinations of 2 tuples (order does not matter).
    Returns a list of tuples where each element is the sum of corresponding elements.
    """
    return [tuple(a + b for a, b in zip(t1, t2))
            for t1, t2 in itertools.combinations(tuples, 2)]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试