随笔分类 -  约数

摘要:#include<stdio.h>#include<math.h>#define LL long longLL a, b, x, y;LL gcd(LL p, LL q) { LL r = 1; while (r) { r = p % q; if (r) { p = q; q = r; } } return q;}LL solve() { LL i, te; b /= a; te = (LL) (sqrt(b * 1.0)); for (i = te; i >=... 阅读全文
posted @ 2011-10-11 19:13 qingyezhu 阅读(346) 评论(0) 推荐(0)