hdu 1695 GCD 欧拉函数 + 容斥
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1695 要求[L1, R1]和[L2, R2]中GCD是K的个数。那么只需要求[L1, R1 / K] 和 [L2, R2 / K]中GCD是1的对数。 由于(1, 2)和(2, 1)是同一对。 那么我们枚举大区间 阅读全文
posted @ 2016-12-10 23:43 stupid_one 阅读(209) 评论(0) 推荐(0) 编辑