int gcd(int a,int b){
return b==0?a:gcd(b,a%b);
}
C++得到最大公约数模板
最新推荐文章于 2023-01-16 16:36:27 发布
int gcd(int a,int b){
return b==0?a:gcd(b,a%b);
}