最大公因数(辗转相除法)

int gys(int m, int n){
    return n == 0 ? m : gys(n, m % n);
}

 

posted @ 2019-03-25 21:42  Coodyzのblog  阅读(633)  评论(0)    收藏  举报