Mbpp/75

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度479 字符
模型生成的代码 (479 字符)
from typing import List, Tuple
def find_tuples(tuples_list: List[Tuple[int, ...]], k: int) -> List[Tuple[int, ...]]:
    """
    Return all tuples from the input list where every element is divisible by k.
    
    Args:
        tuples_list: A list of tuples containing integers.
        k: An integer divisor.
    
    Returns:
        A list of tuples where every element is evenly divisible by k.
    """
    return [tup for tup in tuples_list if all(x % k == 0 for x in tup)]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试