totaled
totaled
全部文章
分类
atcoder(1)
codeforces(6)
leetcode(17)
Linux(5)
操作系统(2)
数据结构(7)
未归档(1)
算法(23)
网络编程(1)
计算机网络(5)
题解(84)
归档
标签
去牛客网
登录
/
注册
qin_peng
O_O
TA的专栏
10篇文章
0人订阅
Hello Code
10篇文章
8715人学习
全部文章
(共8篇)
2020 Wannafly Day3 D.求和(反演,杜教筛)
求和 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll mod; const int N=1e6+6; bool vis[N]; ll prime[N],phi[N],tot; ll...
狄利克雷卷积
莫比乌斯反演
杜教筛
2020-01-29
0
650
2019西安 B-Product (莫比乌斯反演 杜教筛)
Product #include<bits/stdc++.h> #define me(a,x) memset(a,x,sizeof(a)) #define sc scanf #define itn int #define IN freopen("in.txt","r",s...
莫比乌斯反演
杜教筛
2019-09-11
0
740
2018徐州网络赛 D-Easy Math(反演 杜教筛)
Easy Math #include<bits/stdc++.h> #define me(a,x) memset(a,x,sizeof(a)) #define sc scanf #define itn int #define IN freopen("in.txt","r",...
递归
莫比乌斯反演
杜教筛
2019-09-03
0
659
2019南京网络赛 E-K Sum(杜教筛 反演)
K Sum #include<bits/stdc++.h> #define me(a,x) memset(a,x,sizeof(a)) #define IN freopen("in.txt","r",stdin); #define OUT freopen("out.txt"...
莫比乌斯反演
杜教筛
2019-09-01
0
679
51Nod-1238 最小公倍数和V3(杜教筛)
51Nod-1238 最小公倍数和V3 #include<bits/stdc++.h> using namespace std; #define me(a,x) memset(a,x,sizeof(a)) #define IN freopen("in.txt","r",stdin...
莫比乌斯反演
欧拉函数
积性函数
欧拉反演
杜教筛
2019-08-27
0
646
51Nod-1237 最大公约数之和V3(欧拉反演 杜教筛)
51Nod-1237 最大公约数之和 V3 #include<bits/stdc++.h> using namespace std; const int N=1e7+6; const int mod=1e9+7; const int inv2=mod+1>>1; ...
欧拉反演
杜教筛
2019-08-26
0
632
HDU-5608 function(莫比乌斯反演 杜教筛)
HDU-5608 function #include<bits/stdc++.h> using namespace std; const int N=1e6+6; const int mod=1e9+7; const int inv3=333333336; typedef ...
莫比乌斯反演
杜教筛
2019-08-26
0
719
HDU-6706 huntian oy(杜教筛)
HDU-6706 huntian oy #include<bits/stdc++.h> using namespace std; const int inv2=500000004; const int inv6=166666668; const int mod=1e9+7...
2019网络赛
杜教筛
2019-08-23
0
832