随笔分类 -  G 数学

摘要:视频链接:https://www.bilibili.com/video/BV1GG411n7tW/ HDU 2973 YAPTCHA #include <iostream> using namespace std; typedef long long LL; const int N = 100000 阅读全文
posted @ 2022-09-23 22:21 董晓 阅读(477) 评论(0) 推荐(0) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1iN4y1K7ZN/ Luogu P5091 【模板】扩展欧拉定理 #include <iostream> using namespace std; typedef long long LL; int a,b,m,phi, 阅读全文
posted @ 2022-09-23 16:35 董晓 阅读(783) 评论(0) 推荐(2) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1RD4y1i7PK/ #include<iostream> using namespace std; typedef long long LL; int a, p; int quickpow(LL a, int b, in 阅读全文
posted @ 2022-09-22 09:47 董晓 阅读(741) 评论(0) 推荐(1) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1Te4y1C7DP/ #include <iostream> using namespace std; const int N = 1000010; int p[N], vis[N], cnt; int mu[N]; vo 阅读全文
posted @ 2022-09-21 21:47 董晓 阅读(489) 评论(0) 推荐(0) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1sd4y1M74E/ #include <iostream> using namespace std; const int N = 1000010; int p[N], vis[N], cnt; //g[i]表示i的最小质 阅读全文
posted @ 2022-09-21 10:57 董晓 阅读(494) 评论(0) 推荐(1) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1ft4y1A7mW/ #include <iostream> using namespace std; const int N = 1000010; int p[N], vis[N], cnt; int a[N]; //a 阅读全文
posted @ 2022-09-20 21:03 董晓 阅读(691) 评论(0) 推荐(0) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1VP411p7Bs/ #include <iostream> using namespace std; const int N = 1e9+10; int phi(int n){ //试除法求欧拉函数 int res = 阅读全文
posted @ 2022-09-14 16:01 董晓 阅读(883) 评论(0) 推荐(3) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1kG411u7Ze Luogu P3383 【模板】线性筛素数 #include <iostream> #include <cstring> #include <algorithm> using namespace std 阅读全文
posted @ 2022-09-13 16:59 董晓 阅读(980) 评论(0) 推荐(0) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1md4y1u7do Luogu P2043 质因子分解 #include <iostream> #include <cstring> #include <algorithm> using namespace std; in 阅读全文
posted @ 2022-09-12 23:37 董晓 阅读(843) 评论(4) 推荐(2) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1mV4y1M7Wq Luogu P5736 【深基7.例2】质数筛 #include <iostream> #include <cstring> #include <algorithm> using namespace s 阅读全文
posted @ 2022-09-12 11:17 董晓 阅读(473) 评论(0) 推荐(0) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1XG4y1q7e7 Luogu P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题 #include <iostream> #include <cstring> #include <algorithm> 阅读全文
posted @ 2022-09-11 16:22 董晓 阅读(650) 评论(0) 推荐(0) 编辑
摘要:视频链接:510 矩阵加速 P1962 斐波那契数列_哔哩哔哩_bilibili Luogu P1962 斐波那契数列 // O(2^3*logn) #include <iostream> #include <cstring> #include <algorithm> using namespace 阅读全文
posted @ 2022-09-08 22:46 董晓 阅读(767) 评论(0) 推荐(2) 编辑
摘要:视频链接:509【模板】矩阵快速幂_哔哩哔哩_bilibili Luogu P3390 【模板】矩阵快速幂 #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long lo 阅读全文
posted @ 2022-09-08 15:33 董晓 阅读(1011) 评论(0) 推荐(4) 编辑
摘要:视频链接:https://www.bilibili.com/video/BV1R14y1e7r7 Luogu P1045 [NOIP2003 普及组] 麦森数 #include <iostream> #include <cstring> #include <algorithm> #include < 阅读全文
posted @ 2022-09-06 16:10 董晓 阅读(919) 评论(1) 推荐(1) 编辑
摘要:视频链接:G01 快速幂_哔哩哔哩_bilibili Luogu P1226 【模板】快速幂||取余运算 #include <iostream> using namespace std; typedef long long LL; int a,b,p; int qpow(int a,int b,in 阅读全文
posted @ 2022-09-04 20:44 董晓 阅读(746) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示