摘要: ``` / POJ3090 Visible Lattice Points 欧拉函数 / include using namespace std; int C,N; //欧拉函数模板 int Euler(int n) { int num = n; for(int i = 2;i 阅读全文
posted @ 2019-04-18 20:22 Youpeng 阅读(95) 评论(0) 推荐(0) 编辑
摘要: ``` /* * 二次筛素数 * POJ268————Prime Distance(数论,素数筛) */ #include #include using namespace std; const int maxn = 1000005; typedef long long LL; bool is_prime_small[maxn]; bool is_prime[maxn]; ve... 阅读全文
posted @ 2019-04-18 20:11 Youpeng 阅读(174) 评论(0) 推荐(0) 编辑