最大公约数

int gcd(int a, int b)
{
return b ? gcd(b, a % b) : a;
}

posted @ 2022-12-08 21:15  山海自有归期  阅读(12)  评论(0编辑  收藏  举报