摘要: int gcd(int a, int b)//求最大公约数,a为分子,b为分母 { if(b == 0) return a; return gcd(b,a%b); } 阅读全文
posted @ 2016-03-03 21:11 Yosha 阅读(382) 评论(3) 推荐(0) 编辑