gcd 最小公约数

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

 

posted on 2014-03-15 16:52  jjtx  阅读(176)  评论(0)    收藏  举报

导航