Mbpp/300

⚠️ 仅 Base 通过 Base: PASS Plus: FAIL
测试评估
指标结果
Base 测试PASS
Plus 测试FAIL
代码长度287 字符
模型生成的代码 (287 字符)
import math
def count_binary_seq(n: int) -> int:
    """
    Returns the number of binary sequences of length 2n
    such that the sum of the first n bits equals the sum of the last n bits.
    This equals the central binomial coefficient C(2n, n).
    """
    return math.comb(2 * n, n)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • [50]