辗转相除法

来源:互联网 发布:查看淘宝店铺在线人数 编辑:程序博客网 时间:2024/06/08 11:13
int gcd(int b1, int b2){     return b2==0 ? b1 : gcd(b2, b1%b2);}



很风骚