最大公约数(超级好的板子)

int gcd(int x, int y)
{
    return (!y) ? x : gcd( y, x % y );
}

 

posted @ 2018-08-25 21:15  Mercury_Lc  阅读(158)  评论(0)    收藏  举报