上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页
摘要: 视频链接:https://www.bilibili.com/video/BV1Jd4y127oY/ Luogu P3807 【模板】卢卡斯定理/Lucas 定理 #include <iostream> using namespace std; typedef long long LL; const 阅读全文
posted @ 2022-10-08 21:34 董晓 阅读(979) 评论(3) 推荐(4)
摘要: 视频链接:G26 求组合数 快速幂_哔哩哔哩_bilibili #include <iostream> using namespace std; typedef long long LL; const int N=100010,P=1e9+7; int q,n,m; LL f[N],g[N]; LL 阅读全文
posted @ 2022-10-08 20:16 董晓 阅读(809) 评论(0) 推荐(2)
摘要: 视频链接:https://www.bilibili.com/video/BV1BG41177Ff/ #include <iostream> using namespace std; const int N=2010, P=1e9+7; int C[N][N]; void init(){ for(in 阅读全文
posted @ 2022-10-07 21:31 董晓 阅读(578) 评论(0) 推荐(0)
摘要: 视频链接:G24 矩阵求逆 高斯约旦消元法_哔哩哔哩_bilibili Luogu P4783 【模板】矩阵求逆 #include<iostream> #include<cstdio> #include<cmath> #define LL long long using namespace std; 阅读全文
posted @ 2022-10-05 21:34 董晓 阅读(609) 评论(0) 推荐(1)
摘要: 视频链接:G23 线性方程组 高斯消元法_哔哩哔哩_bilibili Luogu P3389 【模板】高斯消元法 #include <iostream> #include <algorithm> #include <cmath> using namespace std; const int N = 阅读全文
posted @ 2022-10-05 21:31 董晓 阅读(989) 评论(2) 推荐(6)
摘要: 视频链接:https://www.bilibili.com/video/BV1GR4y1X7Mc/ Luogu P4195 【模板】扩展 BSGS/exBSGS #include <iostream> #include <cstring> #include <algorithm> #include 阅读全文
posted @ 2022-10-05 21:29 董晓 阅读(446) 评论(1) 推荐(1)
摘要: 视频链接:https://www.bilibili.com/video/BV1xd4y1175R/ Luogu P3846 [TJOI2007] 可爱的质数/【模板】BSGS #include <iostream> #include <cstring> #include <algorithm> #i 阅读全文
posted @ 2022-10-02 10:34 董晓 阅读(726) 评论(1) 推荐(0)
摘要: 视频链接:https://www.bilibili.com/video/BV1Ut4y1F7HG/ Luogu P4777 【模板】扩展中国剩余定理(EXCRT) #include <iostream> #include <cstring> #include <algorithm> using na 阅读全文
posted @ 2022-09-30 09:32 董晓 阅读(765) 评论(0) 推荐(0)
摘要: 视频链接:https://www.bilibili.com/video/BV1AN4y1N7Su/ Luogu P1495 【模板】中国剩余定理(CRT)/ 曹冲养猪 #include <iostream> #include <cstring> #include <algorithm> using 阅读全文
posted @ 2022-09-28 18:42 董晓 阅读(963) 评论(0) 推荐(1)
摘要: G18 同余方程 乘法逆元 扩展欧几里得算法_哔哩哔哩_bilibili P1082 [NOIP 2012 提高组] 同余方程 - 洛谷 #include<bits/stdc++.h> using namespace std; int a,b,x,y; int exgcd(int a,int b,i 阅读全文
posted @ 2022-09-27 10:47 董晓 阅读(949) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 45 下一页