摘要: 最大公约数1. 用最基本的循环遍历的方法2. 用辗转相除法3. 用辗转相减法See also: http://baike.baidu.com/view/47637.htm 1 #include 2 using namespace std; 3 4 int CommonDivisor( int x,... 阅读全文
posted @ 2014-11-20 14:23 仰望星辰 阅读(560) 评论(0) 推荐(0) 编辑