Mbpp/799

❌ 均未通过 Base: FAIL Plus: FAIL
测试评估
指标结果
Base 测试FAIL
Plus 测试FAIL
代码长度349 字符
模型生成的代码 (349 字符)
def left_rotate(n: int, d: int) -> int:
    """
    Rotate left the bits of a 32-bit number n by d bits.
    Parameters:
        n (int): The number to rotate, assumed to be represented in 32 bits.
        d (int): Number of bits to rotate left.
    Returns:
        int: The result of left rotation, as a 32-bit unsigned integer.
    """
    # Mask
Base 失败测试用例
  • [16, 2]
Plus 失败测试用例
  • [0, 4]