摘要: 欧几里得算法 #include<iostream> #include<cstdio> using namespace std; int x,y; int gcd(int a,int b){ if(b==0) return a; return gcd(b,a%b); } int lcm(int a,i 阅读全文
posted @ 2021-03-06 21:30 DReamLion 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Luogu P3383线性筛素数 #include<iostream> #include<cstdio> #include<cstdlib> #define maxn 100000010 using namespace std; template<typename T> inline void re 阅读全文
posted @ 2021-03-06 21:26 DReamLion 阅读(29) 评论(0) 推荐(0) 编辑