求最大公约数

int gcd(int x,int y)

{

return y?gcd(y,x%y):x;

}

 

posted @ 2024-04-01 22:14  夜深人静写算法  阅读(10)  评论(0)    收藏  举报