最大公约数

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

 

posted @ 2020-04-22 23:18  Jinxiaobo0509  阅读(88)  评论(0)    收藏  举报