Mbpp/309

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度273 字符
模型生成的代码 (273 字符)
def maximum(a, b):
    """
    Return the larger of two numbers.
    
    Parameters:
    a (int/float): first number
    b (int/float): second number
    
    Returns:
    int/float: the maximum of a and b
    """
    if a >= b:
        return a
    else:
        return b
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试