第42355题 判断题
下面的欧几里得算法,只要 a、b 是正整数,无论 a > b 还是 a < b 都可以正常求出最大公约数。
def gcd(a, b):
    while b != 0:
        r = a % b
        a = b
        b = r
    return a
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析