Mbpp/619

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度323 字符
模型生成的代码 (323 字符)
def move_num(s: str) -> str:
    """
    Moves all digit characters to the end of the string while preserving
    the relative order of both the non-digit and digit sequences.
    """
    non_digits = [ch for ch in s if not ch.isdigit()]
    digits = [ch for ch in s if ch.isdigit()]
    return ''.join(non_digits + digits)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试