
欧拉函数
Werky_blog
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu 5597 欧拉函数+打表
题目:http://acm.split.hdu.edu.cn/showproblem.php?pid=5597 大意:给出一个函数,以其函数值为自变量求欧拉函数。 打表: #include #include #define ll long long using namespace std; ll f[1000000],C[1000000]; ll N,x; ll solve(ll x){原创 2017-10-19 00:25:13 · 271 阅读 · 0 评论 -
POJ 2154 color(欧拉函数,Polya定理)
题目:http://poj.org/problem?id=2154 这种用欧拉函数优化Polya定理真想不到,只能多做题见识见识类型。 证名就不证了,知道方案数L 可以转化为就行了 #include #include #include #define ll int using namespace std; const int N=1e5; int n,mod; int pr[N]; boo原创 2017-11-07 21:41:54 · 236 阅读 · 0 评论