最大公约数(欧几里得算法/辗转相除法)

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

猜你喜欢

转载自www.cnblogs.com/qdu-lkc/p/12259884.html