计算最大公因数 计算两个整数的最大公因数,假设M>=Nlong gcd(long m, long n){ while (n!=0) { long rem = m%n; m = n; n = rem; } return m;}转载于:https://www.cnblogs.com/larr... Other 2023-10-28 47 点赞 0 评论 71 浏览