第42261题 单选题
下面代码实现了欧几里得算法,下面有关说法,错误的是( )。
def gcd1(a: int, b: int) -> int:
    return a if b == 0 else gcd1(b, a % b)

def gcd2(a: int, b: int) -> int:
    while b != 0:
        temp = b
        b = a % b
        a = temp
    return a
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析