void gcd(int a,int b){
return a%b==0?a:gcd(b,a%b);
}
辗转相除法求最大公约数
最新推荐文章于 2022-07-23 00:12:28 发布
void gcd(int a,int b){
return a%b==0?a:gcd(b,a%b);
}