摘要: 1001Travel with candy1002The sum of gcd学了莫队补的。基本还是别人的方法。先预处理出每个点左右的gcd区间。最多log(a[i])个。然后套莫队转移。 1 # include 2 # include 3 # include 4 # include ... 阅读全文
posted @ 2015-08-13 22:59 Aguin 阅读(300) 评论(0) 推荐(0) 编辑