摘要: 最大公约数(Greatest Common Divisor, GCD) 最小公倍数(Least Common Multiple, LCM) #include <iostream> // 函数:计算两个数的最大公约数(GCD),这被称为欧几里得算法 int gcd(int a, int b) { if 阅读全文
posted @ 2024-06-01 14:33 石中火本火 阅读(35) 评论(0) 推荐(0) 编辑