c++求最大公倍数和最小公约数
一:
1 | #include <iostream> |
二(c++中的库函数):
1 | #include <numeric> // 包含 gcd 和 lcm 函数 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
一:
1 | #include <iostream> |
二(c++中的库函数):
1 | #include <numeric> // 包含 gcd 和 lcm 函数 |