码迷,mamicode.com
首页 > 其他好文 > 详细

【CodeForces】585 E. Present for Vitalik the Philatelist

时间:2017-12-01 22:15:41      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:5*   def   list   href   http   phi   .com   计数   pre   

【题目】E. Present for Vitalik the Philatelist

【题意】给定n个数字,定义一种合法方案为选择一个数字Aa,选择另外一些数字Abi,满足?gcd(Aa,Abi)=1,且gcd(Ab1...Abx)≠1,求方案数取模1e9+7。2<=n<=5*10^5,2<=ai<=10^7。

【算法】数论,计数问题

【题解】

【CodeForces】585 E. Present for Vitalik the Philatelist

标签:5*   def   list   href   http   phi   .com   计数   pre   

原文地址:http://www.cnblogs.com/onioncyc/p/7944328.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!