Mbpp/726

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度231 字符
模型生成的代码 (231 字符)
def multiply_elements(t):
    """
    Takes a tuple of numbers (t_1, t_2, ..., t_{N+1}) and returns
    a tuple of length N where the i-th element is t_i * t_{i+1}.
    """
    return tuple(t[i] * t[i+1] for i in range(len(t) - 1))
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试