会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Recoder
我们一路奋战, 不是为了改变世界, 而是不让世界改变我们.
博客园
首页
新随笔
联系
订阅
管理
2016年7月21日
HDU 5726 GCD (RMQ + 二分)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5726 给你n个数,q个询问,每个询问问你有多少对l r的gcd(a[l] , ... , a[r]) 等于的gcd(a[l'] ,..., a[r'])。 先用RMQ预处理gcd,dp[i][j] 表示
阅读全文
posted @ 2016-07-21 21:11 Recoder
阅读(199)
评论(0)
推荐(0)
编辑
公告